I have created a new angular application with the angular cli (ng new my-app --style=scss
). Both ng serve
and ng build
fail if any scss file has any content (even the initial comment in styles.scss
fails to compile):
body {
display: block;
}
Module build failed (from ./node_modules/sass-loader/lib/loader.js): TypeError: Instance of 'dz': type 'dz' is not a subtype of type 'n'
My system:
It works on another windows machine.
After uninstalling global sass with npm uninstall -g sass
, the build worked.