generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

Webpack missing module when Sass selected

Open stherrienaspnet opened this issue 7 years ago • 4 comments

  • [x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.1.1
Node 7.4.0
npm 4.0.5
Operating System Ubuntu 16.04
etc etc
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ui-router
Client Tests Mocha
DB SQL
Auth Y
etc etc

When i sent the command gulp serve i got this message into my terminal: ERROR in ENOENT: no such file or directory, scandir '/home/steph/dev/test1/node_modules/node-sass/vendor' @ ./client/app/app.scss 4:14-120

The site is starting on a blank page and i can see into my chrome console Uncaught Error: Cannot find module "!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js!./app.scss" at webpackMissingModule (app.scss:4) at Object. (app.scss:4) at webpack_require (bootstrap 05c6fa0…:50) at Object. (app.js:30) at webpack_require (bootstrap 05c6fa0…:50) at webpackJsonpCallback (bootstrap 05c6fa0…:21) at app.bundle.js:1

stherrienaspnet avatar Jan 08 '17 04:01 stherrienaspnet

Anyone!?!

stephengardner avatar Jan 27 '17 23:01 stephengardner

Try reinstalling node-sass?

Awk34 avatar Jan 28 '17 02:01 Awk34

Getting the same issue. It's fixed by npm i -S node-sass

Hosar avatar Mar 12 '17 23:03 Hosar

@Hosar, node-sass should be installed as a devDependency, so use npm i -D node-sass

yuriyyakym avatar Jan 14 '18 00:01 yuriyyakym