Kocal / vue-web-extension

🛠️ A Vue CLI 3+ preset (previously a Vue CLI 2 boilerplate) for quickly starting a web extension with Vue, Babel, ESLint and more!
https://vue-web-extension.netlify.app/
MIT License
1.58k stars 167 forks source link

Cannot serve and build #683

Open ckissi opened 2 years ago

ckissi commented 2 years ago

I cannot build , even npm run serve doesn't work

To Reproduce npm run build

 ERROR  TypeError: Cannot read property 'ignore' of undefined
TypeError: Cannot read property 'ignore' of undefined
    at /Users/csabakissi/ChromeExt/my-extension/node_modules/vue-cli-plugin-browser-extension/index.js:129:20
    at Object.tap (/Users/csabakissi/ChromeExt/my-extension/node_modules/webpack-chain/src/Plugin.js:30:24)
    at /Users/csabakissi/ChromeExt/my-extension/node_modules/vue-cli-plugin-browser-extension/index.js:128:36
    at /Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/Service.js:268:40
    at Array.forEach (<anonymous>)
    at Service.resolveChainableWebpackConfig (/Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/Service.js:268:26)
    at PluginAPI.resolveChainableWebpackConfig (/Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/PluginAPI.js:145:25)
    at module.exports (/Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:9:22)
    at build (/Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/commands/build/index.js:147:50)
    at /Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/commands/build/index.js:77:13
    at Service.run (/Users/csabakissi/ChromeExt/my-extension/node_modules/@vue/cli-service/lib/Service.js:262:12)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Desktop (please complete the following information):

Tried on second computer with the same result.

Kocal commented 2 years ago

Hi, looks like the issue is coming from https://github.com/adambullmer/vue-cli-plugin-browser-extension

webjosn commented 2 years ago

Excuse me, has this problem been solved

choxner commented 1 year ago

In package.json you can change "vue-cli-plugin-browser-extension": "latest" to "vue-cli-plugin-browser-extension": "npm:@rhilip/vue-cli-plugin-browser-extension@^0.26.0". Then remove your node_modules folder and run npm i to reinstall. Had the same issue and this resolved it for me.