問題
webextension-toolboxを用いてchrome extensionを開発しています。
ビルドがMac環境ではうまくいくのですが、Windows環境で通らず以下のエラーが出ます。
どうすればよいでしょうか…?
拡張機能のテンプレートはgenerator-web-extensionを使用しています。
$ webextension-toolbox build chrome ... (node:2044) UnhandledPromiseRejectionWarning: Error: absolute path: C:/Users/k/repo/myWebExtension/app/scripts/background.js at validateMetadataPath (C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\yazl\index.js:351:74) at ZipFile.addBuffer (C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\yazl\index.js:62:18) at Compiler.<anonymous> (C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\zip-webpack-plugin\index.js:46:12) at next (C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\tapable\lib\Tapable.js:204:14) at callback (C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\copy-webpack-plugin\dist\index.js:77:17) at C:\Users\k\AppData\Roaming\npm\node_modules\webextension-toolbox\node_modules\copy-webpack-plugin\dist\index.js:118:24 at <anonymous> (node:2044) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pr omise which was not handled with .catch(). (rejection id: 1) (node:2044) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non -zero exit code.
よろしくお願いします。
あなたの回答
tips
プレビュー