Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reactjs - Demo Application is not working

Tags:

reactjs

I am trying setup react new setup but it is give me below error

./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Cannot find module '@csstools/normalize.css'

can anyone suggest me to move forward

thanks in advance

like image 255
Vishal Tanna Avatar asked Apr 25 '19 12:04

Vishal Tanna


2 Answers

I'm able to solve the problem. The problem is that package-lock.json is pointing to the older packages.
To fix, uninstall an install the package again

Uninstall package

$ sudo npm remove csstools/normalize.css

After that, we have to install again

$ npm install csstools/normalize.css

(removing sudo from the npm install command)

like image 143
Thuvarahan Sivakumar Avatar answered Oct 20 '22 15:10

Thuvarahan Sivakumar


rm -rf node_modules
npm cache clean --force
npm install

now try again to run your scripts, it should work

https://github.com/react-toolbox/react-toolbox-example/issues/28

like image 31
Nishith H.M Avatar answered Oct 20 '22 16:10

Nishith H.M