Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/

I have this error when I npm start my react project. anyone able to solve this?

./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss) Module not found: Can't resolve './assets/scss/flag-icon
like image 721
phongyewtong Avatar asked Jun 10 '20 13:06

phongyewtong


2 Answers

npm uninstall node-sass;

npm install [email protected]
like image 185
carmen romero Avatar answered Sep 17 '22 00:09

carmen romero


  1. Delete your node_modules folder
  2. Delete package-lock.json or yarn.lock

from the command line, run

  1. yarn install
  2. yarn start
like image 44
Ilir Shala Avatar answered Sep 21 '22 00:09

Ilir Shala