Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'node-sass' #2204

Open
bzappasodi opened this issue Jun 20, 2022 · 5 comments
Open

Error: Cannot find module 'node-sass' #2204

bzappasodi opened this issue Jun 20, 2022 · 5 comments

Comments

@bzappasodi
Copy link

I'm running:
node -v
v17.4.0
npm -v
8.3.1

I'm Seeing the following:
ERROR in ./css/storybook.scss (./node_modules/raw-loader!./node_modules/sass-loader/dist/cjs.js!./css/storybook.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Cannot find module 'node-sass'

@razlani
Copy link

razlani commented Nov 10, 2022

I'm running: node -v v17.4.0 npm -v 8.3.1

I'm Seeing the following: ERROR in ./css/storybook.scss (./node_modules/raw-loader!./node_modules/sass-loader/dist/cjs.js!./css/storybook.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): Error: Cannot find module 'node-sass'

Seconded, trying to contribute via a feature request and who knew the first boss would be making it compile/run storybook.

-Did you figure out all the steps for windows dev?

@razlani
Copy link

razlani commented Nov 10, 2022

After some laborious setup via installing visual studio with msbuild tools which is the dependency to node-gyp (among other deps), I'm getting an error as described in the log file below, upon attemping an npm install node-sass@4.0.0

Time to just build components from scratch I reckon!
error.txt

@Pedro-Porfirio
Copy link

Same problem, it seems that node-sass is not included in the initial package.json. I read that node-sass is deprecated, not sure exactly what is happening here.

@onlywei
Copy link

onlywei commented Jan 3, 2023

Same problem here as well. Cannot start storybook.

@ghost
Copy link

ghost commented Apr 18, 2023

node-sass is deprecated ( more info ), thus we need to use sass package. it's a seamless installation no changes are needed.

PR: #2231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants