Front-end vue error: ERROR in ./node_modules/css-loader!./node_modules/sass-loader/

The front-end vue reports an error when executing npm run dev:

ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/components/loading

Background: After executing npm install according to the front-end dependency environment, the installation dependencies are all normal, and no errors are reported.
Phenomenon: When running the front-end code, the error is reported as follows:
Insert picture description here
According to the reference: The reason for the error is actually that when the dependency is introduced, the configuration of the corresponding computer is different, and the error is reported. You only need to reinstall the dependency.
Solution: execute the command

npm install --save node-sass

Guess you like

Origin blog.csdn.net/qq_42631707/article/details/112983151