Error: Rule can only have one resource source (provided resource and test + include + exclude) Error: Rule can only have one resource source (provided resource and test + include + exclude) vue.js vue.js

Error: Rule can only have one resource source (provided resource and test + include + exclude)


Thanks for that !

I just had the same problem

Deleting webpack and installing previous version worked for me as well!

npm uninstall webpack
npm install webpack@^4.0.0 --save-dev


I encountered exactly this error today, and my solution to fix this was to revert changes in my package-lock.json.

Then a npm prune to remove unuseful packages and npm update to be up-to-date.


my problem was that in package.json it had "webpack": 'latest', this generated conflicts, what I did was go back to version 4.44.0 of webpack and my problem was solved