-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Symlinked scss still not triggering recompile on change #19191
Copy link
Copy link
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:dev-serverfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is neededseverity3: brokentype: bug/fix
Milestone
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:dev-serverfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is neededseverity3: brokentype: bug/fix
🐞 Bug report
(Copy of #18229 as the exact same issue is still there with ng 10.2)
Command
Description
Imagine the following filesystem structure:
testFolder/ ├── realFolder1/ │ └── style1.scss ├── realFolder2/ │ └── style2.scss └── ngApp/ ├── src/ │ ├── styles.scss │ ├── link1 │ └── link2 └── .....link1 & link2 are symbolic links, linking to realFolder1 and realFolder2, respectively.
The styles.scss in the actual angular app imports the style1.scss from the linked folder link1.
The style1.scss imports the style2.scss from the linked folder link2.
styles.scss contains actual style definitions.
Now when serving (or building with --watch) everything gets compiled correctly, but changes to the styles2.scss are ignored and not rebuild. Only when triggering a change in a different file the changes from style2.scss are sometimes also recompiled.
Actually in my repro app this is even true for changes to style1.scss! However, on my "real" project where I discovered this, the issue only occurs on the second level of symlinked references...
🔬 Minimal Reproduction
To reproduce this issue you can do the following:
Either you recreate the above structure or you clone my example app for this issue. In this example app for whatever reason symlinked scss files, do not trigger a recompile at all. In the real app this definitely works on some occasions where it is just one symlinked file, but fails when configured as above.
I updated the repo to angular 10.2
🌍 Your Environment
Anything else relevant?
Reproducible with Windows 10 and WSL
Apparently something changed in the cli but the problematic behavior did not change at all.