Skip to content

Changes in partial scss files are not respected when using ng serve --aot on Windows #15340

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

Closed
rosen-vladimirov opened this issue Aug 15, 2019 · 2 comments · Fixed by #16068
Closed
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Milestone

Comments

@rosen-vladimirov
Copy link

rosen-vladimirov commented Aug 15, 2019

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 8.1

Description

When partial scss files are used (scss files which names start with _), ng serve --aot on Windows does not detect changes in them. This is not happening when --aot is not passed. Also everything works fine on macOS and Linux.

🔬 Minimal Reproduction

You can find a sample project reproducing the issue here: https://github.com/rosen-vladimirov/angular-scss-windows-aot-issue

The project was created with ng new --style scss, without router. After that I've included the partial scss file and used it in app.component.
Run ng serve --aot on Windows and apply a change in the partial scss file. Nothing happens.

🔥 Exception or Error

No error, just the changes are not detected and they are not applied.

🌍 Your Environment




Angular CLI: 8.2.2
Node: 10.15.1
OS: win32 x64
Angular: 8.2.2
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.802.2
@angular-devkit/build-angular     0.802.2
@angular-devkit/build-optimizer   0.802.2
@angular-devkit/build-webpack     0.802.2
@angular-devkit/core              8.2.2
@angular-devkit/schematics        8.2.2
@ngtools/webpack                  8.2.2
@schematics/angular               8.2.2
@schematics/update                0.802.2
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.38.0

Anything else relevant?
Issue is reproducible only on Windows.
NOTE: It breaks syncing of partial scss files in NativeScript Angular projects as well (tns run android --env.aot is not working on Windows when changing partial scss).

@filipesilva
Copy link
Contributor

#16068 should fix this issue too.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants