reason
Webpack version conflict in package.json.
Vue/cli depends on the version of webpack4,
The webpack downloaded through the command is version 5 and cannot be used
Solution
Delete the webpack and reinstall the previous version
npm uninstall webpack
npm install webpack@^4.0.0 –save-dev
Read More:
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Vue Use gzip Package Error: Rule can only have one resource source
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- After Vue is packaged to the server, the static resource path reports an error
- [Solved] Error: EBUSY: resource busy or locked, lstat ‘D:\DumpStack.log.
- error: Vue Project lang=“less“ Error [How to Solve]
- [Solved] Vue project configurate test environment and package error
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- [Solved] Vue unit test syntax error: unexpected token ‘export‘
- [Solved] Failed to load resource: net::ERR_FILE_NOT_FOUND
- Yarn vue3 modify the name of the source file Error [Solved]
- Vue Install less Error: While resolving: [email protected]
- Node.js Error: “Error: EBUSY: resource busy or locked, stat“
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- Vue Package Image Error: Syntax Error: Error: ‘**\node_modules\pngquant-bin\vendor\pngquant.exe‘