react-static: Can't resolve 'sass-loader' in ...
After creating a fresh site with react-static create
and choosing the sass template, I get the following build error on doing react-static start
.
Module not found: Can't resolve 'sass-loader' in '/usr/local/lib/node_modules/react-static/node_modules'
I tried completely removing /usr/local/lib/node_modules/react-static and doing npm install -g react-static
but get the same result. Running npm list sass-loader
in the site directory gives sass-loader@6.0.6
.
Versions: npm - 5.7.1 react-static - 5.5.12
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (7 by maintainers)
Interesting. I have an idea on how to make this error show up less. But it will take some tinkering. Use
npm run
for now. 👍This error occurred for me.
npm run start
works.npm run start
worked.I’ll give it a try. Hang tight.