Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: exec is not a function #19

Open
chenfengyanyu opened this issue Nov 18, 2019 · 1 comment
Open

TypeError: exec is not a function #19

chenfengyanyu opened this issue Nov 18, 2019 · 1 comment

Comments

@chenfengyanyu
Copy link

转换代码如下:

webp.cwebp(file.path, './tmp/output.webp', '-q 80',function(status,error)
 {
  console.log(status,error);	
});

一直报错,请问该如何解决,谢谢!

@sahildev-jd
Copy link

@scionoftech Any update on this?

I'm facing the same issue while converting from webp to png in my react app

TypeError: exec is not a function at webpconverter.js:54 at new Promise (<anonymous>) at Object.push../node_modules/webp-converter/src/webpconverter.js.module.exports.cwebp (webpconverter.js:52) at convertImages (WebpComponent.js:20) at WebpComponent (WebpComponent.js:30) at renderWithHooks (react-dom.development.js:14985) at mountIndeterminateComponent (react-dom.development.js:17883) at beginWork (react-dom.development.js:19049) at beginWork$1 (react-dom.development.js:23940) at performUnitOfWork (react-dom.development.js:22776) at workLoopSync (react-dom.development.js:22707) at renderRootSync (react-dom.development.js:22670) at performSyncWorkOnRoot (react-dom.development.js:22293) at scheduleUpdateOnFiber (react-dom.development.js:21881) at updateContainer (react-dom.development.js:25482) at react-dom.development.js:26021 at unbatchedUpdates (react-dom.development.js:22431) at legacyRenderSubtreeIntoContainer (react-dom.development.js:26020) at Object.render (react-dom.development.js:26103) at Module.<anonymous> (index.js:7) at Module../src/index.js (index.js:18) at __webpack_require__ (bootstrap:856) at fn (bootstrap:150) at Object.1 (reportWebVitals.js:14) at __webpack_require__ (bootstrap:856) at checkDeferredModules (bootstrap:45) at Array.webpackJsonpCallback [as push] (bootstrap:32) at main.chunk.js:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants