Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version

前端 未结 9 1258

Can you help me? I got this error when I hit ng s

ERROR in ./src/styles.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modul         


        
9条回答
  •  情深已故
    2021-02-19 10:20

    Re-installing webpack solved the issue for me.

    npm install --save-dev webpack
    

    or, you can try :

    npm rebuild node-sass
    

提交回复
热议问题