vue-web-extension
vue-web-extension copied to clipboard
执行 “npm install -g @vue/cli npm install -g @vue/cli-init vue create --preset kocal/vue-web-extension my-extension” 提示Error resolving webpackConfig TypeError: Cannot read property 'ignore' of undefined .. ....new-tab-page\node_modules\vue-cli-plugin-browser-extension\index.js:129:20
Describe the bug Error reported in initialization project
To Reproduce Steps to reproduce the behavior:
- npm install -g @vue/cli
- npm install -g @vue/cli-init
- vue create --preset kocal/vue-web-extension my-extension
- @vue/cli-plugin-eslint: Standard Lint on save
- vue-cli-plugin-browser-extension:Which browser extension components do you wish to generate? background, popup, options, content scripts, override, standalone, dev tools;Generate a new signing key (danger)? No 6.Preset options:? Install axios? Yes 7.Running completion hooks... Error resolving webpackConfig TypeError: Cannot read property 'ignore' of undefined at D:\chrome_plugins\c_tab\new-tab-page\node_modules\vue-cli-plugin-browser-extension\index.js:129:20
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- vue-web-extension version: ...
- OS: Windows 10 企业版 22H2
- Node.js version: v14.20.0
- @vue/cli 5.0.8
- npm 6.14.17 Additional context Add any other context about the problem here.
having the same issue!
same problem
same problem
Any solution?
what's the solution??
The error is from the path to the ignore property being moved. Changing line 129 in vue-cli-plugin-browser-extension/index.js
args[0][0].ignore.push('browser-extension.html'); to --> args[0].patterns[0].globOptions.ignore.push('browser-extension.html');
Fixed it for me.