[Solved] Error: Rule can only have one resource source (provided resource and test + include + exclude) in {

The horse’s fooled me for half an hour

The reason for this is that the version of webpack currently installed is too high compared with the version of the original project

Uninstall first

cnpm uninstall webpack -D

Then install version 4.0.0

cnpm install [email protected]^4.0.0 -D

Similar Posts: