Beginners are easy to step on a pit that is too high in learning webpack
This is an error that occurred when I used webpack to package css. The css could not be packaged
because the versions of css-loader and style-loader were too high.
Solution: This is the version information of my original package.json.
Now I manually lower it. Version
"css-loader": "^3.3.0",
"style-loader": "^1.0.0"
Then enter in the command line one by one:
npm install
npm dev
Reinstall the project dependencies, and then use webpack to package again and find that css can be packaged successfully~ The
following website can view the version information of css-loader and style-loader
https://www.npmjs.com/package/style-loader
https:// www.npmjs.com/package/css-loader