Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu 16.10
Versions.
Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
master at 0664beb76da87cb0c8b39c0029dffb3959faadcc using npm link
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
- Start angular-cli in serve mode
ng serve --env local. It all builds normally.
- Modify a scss file linked to a component and save: build fails.
- Remove reference to the scss file from the component and save: builds fine.
- Add the reference to the scss file again: builds.
- Go to step 2
The log given by the failure.
Normally this include a stack trace and some more information.
ERROR in ./src/app/pro-solution/pro-solution.component.scss
Module build failed: Error
at WebpackCompilerHost.populateWebpackResolver (/.../angular-cli/packages/@ngtools/webpack/src/compiler_host.ts:218:51)
at /.../angular-cli/packages/@ngtools/webpack/src/plugin.ts:326:37
at process._tickCallback (internal/process/next_tick.js:103:7)
@ ./src/app/some.component.ts 24:21-61
@ ./src/app/some.module.ts
@ ./src async
@ ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js
@ ./~/@angular/core/src/linker.js
@ ./~/@angular/core/src/core.js
@ ./~/@angular/core/index.js
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts
Mention any other details that might be useful.
This was probably caused by #4188 which modified the populateWebpackResolver method in packages/@ngtools/webpack/src/compiler_host.ts, but I didn't dig much further than that.
Thanks! We'll be in touch soon.
OS?
Ubuntu 16.10
Versions.
master at
0664beb76da87cb0c8b39c0029dffb3959faadccusingnpm linkRepro steps.
ng serve --env local. It all builds normally.The log given by the failure.
Mention any other details that might be useful.
This was probably caused by #4188 which modified the
populateWebpackResolvermethod inpackages/@ngtools/webpack/src/compiler_host.ts, but I didn't dig much further than that.