1

I'm facing following issue on MAC while running existing Angular4 Application. It shows me this error on executing ng serve

ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./node_modules/angular-calendar-week-hours-view/angular-calendar-week-hours-view.scss Module build failed: Error: Cannot find module 'node-sass'

Im importing style in angular-cli.json as follows

"styles": [
        "../node_modules/angular-calendar-week-hours-view/angular-calendar-week-hours-view.scss"
      ],

What could be the probable issue?

"styleExt": "scss",

Added styleExt as scss in angular-cli.json. I do have node 9.11.1

MayureshP
  • 2,514
  • 6
  • 31
  • 41

1 Answers1

0

There is issue with latest node.js version. Issue resolved with installation of older version 6.8.0

Latest version is throwing error to npm install node-sass It works good in lower version.

MayureshP
  • 2,514
  • 6
  • 31
  • 41