[Solved] Vue Error: Error: Rule can only have one resource source (provided resource and test + include + ex

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: