-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Scss build fails because of shim.ngstyle.js not found #15453
Comments
i had the same problem, i just only change one line in component.csss Angular CLI: 8.2.2 Package Version@angular-devkit/architect 0.802.2 |
I Found a solution in cmd.exe
create the file and rebuild |
It's not a good solution as it happens randomly to any edited scss file. Also, the problem is not that it's impossible to build, as it occurs only once in a while and usually after one rebuild it works fine. Your fix (even if It would work) is more of a hack than an actual solution to the problem. |
yo're right, iknow that is not a solution of the real problem, but work if u dont have time to the patch |
This seems to be related to a race condition when saving re-saving a file while a compilation has not yet finished. |
It will help for a while but I think this is result of running ng serve again not from deleting and recreating it. |
yes!, yesterday i just run ng serve and it work, but in some times the file scss.shim.ngstyle.js is not only not found in that component but rather in any scss file that i made a change. |
Same issue with 8.3.1 |
Same issue with 8.3.4 |
This is not related to only SCSS build, but happens with LESS build as well (only difference being that it complaints about missing xxx.less.shim.ngstyle.js -files, and not xxx.scss.shim.ngstyle.js. Also you don't really need to do any LESS changes to get this error, but any change to any TS or HTML template file might randomly initiate that problem. In our team, I am the only one that gets this error regularly, but most of us have seen this occasionally. I have to restart "ng serve --aot" multiple times a day, which is really irritating. (angular-cli 8.3.4) |
Same issue with 8.2.0 |
Same issue with 8.2.5 |
I have often encountered this annoying problem since 8.0. |
This seems to be only acceptable reason for this issue. |
after sass file build fail, any file save or change won't trigger another incremental rebuild until restart build service |
This is happening several times a day for me (using mostly LESS, not SCSS), and it definitely sucks a lot to have to restart ng serve --aot all the time again, esp. when it takes more than 1 minute to complete for our rather large project. |
I was able to reproduce this by following these steps:
Trying to figure out what's happening. |
#15702 should fix it, hopefully out in the next patch version. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
This bug was not present in previous versions.
Description
Sometimes (I can't say what triggers it but for sure when there were changes in scss file) while building a project (with --aot flag, I didn't have checked either the bug occurs without it) (scss file).shim.ngstyle.js is not to be found and after serving again no errors occur.
A clear and concise description of the problem...🔬 Minimal Reproduction
1.make changes in scss file
2. ng s --aot
On some repetition, it will happen.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: