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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown word You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser #20812
Comments
I'm sorry, but we can't reproduce the problem following the instructions you provided. If the problem persists, please open a new issue following our submission guidelines. A good way to make a minimal repro is to create a new app via |
I got this as well. Fixed by removing node_modules + yarn.lock and then reinstalling modules. That would also explain why it can't be reproduced with a fresh project. |
I can't fix it by doing like you said... No idea what is happening... |
Do you use any scss variables within |
Its strange I am unable reproduce it in new project but yet unable to fix it in my ow project either, even after removing I remember it first occurred in Here's my
and
Any help would be really appreciated. |
Realted? postcss/postcss-import#448 |
Edit: the only correct way to solve the issue is to move any next message kept here for history purposes, maybe it could help anyone I had same error message for |
I can confirm this issue. I have the same problem in my app when trying to upgrade from Angular 11 to Angular 12. Apparently, it does not like comments in scss anymore. Removing those comments fixes the issue, but it's indeed something that should be properly fixed. |
|
@alan-agius4 There is a reproduction from angular/angular#42166 now https://github.com/ryuseikurata/ng-v12-error And as @dmk1111 said, after setting |
From the reproduction, it appears that the issue is caused when In the mentioned project |
This definitely fixed the issue in my end. Change angular.json to import specific folders in which there are no scss files. And voila. Thank you @alan-agius4. |
I can't make the angular output dist/assets below the code
can you show your configuration ? |
@alan-agius4 I'm still getting this error message after upgrading to
|
Thank you so much @alan-agius4, In my case my |
Hi, can you explain more how do you resolve it? |
The proper way to resolve it is to move any |
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?
Yes, the previous version in which this bug was not present was: 12.0.0-rc.1Description
After upgrading my app to Angular CLI V 12, when I try to compile my Angular app it throws below error:
馃敩 Minimal Reproduction
Upgrade any Angular app to V 12, and I believe it should have same behavior, since the only change I made in my project it upgrade to V12.
Below is my angular.json:
馃敟 Exception or Error
馃實 Your Environment
The text was updated successfully, but these errors were encountered: