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

执行 “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 #687

Open
myFingerTip opened this issue Apr 3, 2023 · 6 comments

Comments

@myFingerTip
Copy link

myFingerTip commented Apr 3, 2023

Describe the bug
Error reported in initialization project

To Reproduce
Steps to reproduce the behavior:

  1. npm install -g @vue/cli
  2. npm install -g @vue/cli-init
  3. vue create --preset kocal/vue-web-extension my-extension
  4. @vue/cli-plugin-eslint: Standard Lint on save
  5. 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.
@jawt94
Copy link

jawt94 commented Apr 19, 2023

having the same issue!

@OakTre
Copy link

OakTre commented Apr 21, 2023

same problem

1 similar comment
@taticohu
Copy link

same problem

@udaykiranchenna2
Copy link

Any solution?

@bigyanghimire
Copy link

what's the solution??

@ryanscottmalmoe
Copy link

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.

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

7 participants