electronでpuppeteerを使いたいが、下記エラーが発生してしまいます。
エラーワードで検索をかけても解決にいたらず行き詰っております。
何か少しでもわかる方がいらっしゃれば教えていただけると助かります。
Uncaught TypeError: The "original" argument must be of type Function at promisify (util.js?3022:602) at eval (index.js?6362:11) at Object../node_modules/puppeteer/node_modules/extract-zip/index.js (chunk-vendors.js:2724) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (BrowserFetcher.js?aafb:48) at Object../node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js (chunk-vendors.js:2653) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (Launcher.js?83c8:43) promisify @ util.js?3022:602 eval @ index.js?6362:11 ./node_modules/puppeteer/node_modules/extract-zip/index.js @ chunk-vendors.js:2724 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ BrowserFetcher.js?aafb:48 ./node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js @ chunk-vendors.js:2653 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ Launcher.js?83c8:43 ./node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js @ chunk-vendors.js:2677 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ Puppeteer.js?4bb2:22 ./node_modules/puppeteer/lib/cjs/puppeteer/common/Puppeteer.js @ chunk-vendors.js:2485 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ initialize.js?40fb:22 ./node_modules/puppeteer/lib/cjs/puppeteer/initialize.js @ chunk-vendors.js:2641 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ index.js?6fc5:18 ./node_modules/puppeteer/lib/cjs/puppeteer/index.js @ chunk-vendors.js:2629 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ cjs-entry.js?7206:28 ./node_modules/puppeteer/cjs-entry.js @ chunk-vendors.js:2197 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ App.vue?3dfd:7 ./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader-v16/dist/index.js?!./src/App.vue?vue&type=script&lang=js @ app.js:938 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ App.vue?224d:1 ./src/App.vue?vue&type=script&lang=js @ app.js:1007 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ App.vue?dfb6:1 ./src/App.vue @ app.js:995 __webpack_require__ @ app.js:849 fn @ app.js:151 eval @ main.js:11 ./src/main.js @ app.js:1043 __webpack_require__ @ app.js:849 fn @ app.js:151 1 @ app.js:1056 __webpack_require__ @ app.js:849 checkDeferredModules @ app.js:46 (anonymous) @ app.js:925 (anonymous) @ app.js:928 Show 20 more frames
追記です。
Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type object at Object.promisify (internal/util.js:260) at eval (BrowserRunner.js?1810:52) at Object../node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js (chunk-vendors.js:2047) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (Launcher.js?83c8:49) at Object../node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js (chunk-vendors.js:2059) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (Puppeteer.js?4bb2:22)
あなたの回答
tips
プレビュー