ERROR Error: Rule can only have one resource source (provided resource and test + include + exc
lude) in {
“type”: “javascript/auto”,
“include”: [
{}
],
“use”: []
}
If NPM I – D webpack is directly installed, the webpack@5 However, Vue cli depends on webpack@4, so it will report an error.
Solution:
NPM un – D webpack uninstall webpack
Or install the version directly in package JSON: “webpack”: “4.23.0”
Similar Posts:
- [Solved] Error: Rule can only have one resource source (provided resource and test + include + exclude) in {
- Webpack high version pulls out CSS style and reports an error [Solved]
- [Solved] Webpack Error: [webpack-cli] Unable to load ‘@webpack-cli/serve’ command
- Solutions to the problem that image webpack loader cannot be installed or the installation is stuck
- Vue configures the compression-webpack-plugin to package and compress JS and CSS Error
- [Solved] [email protected] Error: Cannot find module ‘webpack/bin/config-yargs‘
- [Solved] Ruby cannot load such file — zlib, openssl(LoadError), gem No rule to make target `/include/ruby.h’
- Building for production… ERROR TypeError: Cannot read property ‘createHash‘ of undefined
- Webpack packaging error: cannot find module ‘webpack / bin / config yargs’ error reason, [email protected] Step on the pit~
- Openeuler: How to Install OpenSSL