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
Module build failure after upgrade from 12.0.1 to 14.0.0 #448
Comments
Without a reduced test case, there is no way I can debug this. |
Sure thing, I will update with a minimal repository to reproduce the issue |
Here is a repository with a minimal angular install that reproduces the build error. |
Hmm, seems like it's erroring out in some code added in v8, and does seem tied to media imports. Is this reproducible if you use postcss-import directly (i.e. outside of angular tooling)? |
Yes, with a minimally configured webpack environment using postcss and postcss-import I encounter the same error,
|
OK, finally figured out why it's failing in this specific case. The file you're importing starts with a |
Interesting! That explains why it only seemed to be happening to me. |
Hi all, We also encountered this case in Angular 11 applications when and my CSS file has
In case it helps I've attached a simple example for testing |
How to downgrade ? In package.json if I downgrade using "postcss-import": "12.0.1" , in package-lock.json its still showing v14.0.0. I did manually updated package-lock.json file. its working. But If I do npm i again I have to update manually. how can avoid this ? |
I patched this using npm-force-resolutions until the issue is resolved. |
Proposed fix: #453 |
When this fix will be available ? |
It is available in v14.0.1 |
is version 14.0.1 is released ?. By default in which angular version it is associated ? |
It is released; I have no idea how angular handles any of this. |
This library is angular internal dependency. When I specify version package.json still showing v14.0.0. Any Idea on which version angular will include this fix ? |
No, you'll have to ask angular about this (assuming your lockfile isn't holding it back) |
Hello,
After updating my Angular app from 10 to 11 recently, I am encountering build errors from postcss-import after the package is upgraded to
14.0.0
.Downgrading the package manually to
12.0.1
, which was the previously installed version by Angular, fixes the problem.Not sure if this is a screw up on my behalf from the Angular migration or not, if so, apologies for spamming your issue tracker.
Jump to Line
This appears to be caused by the following line in the styles.css:
@import "../node_modules/@clr/ui/clr-ui-dark.min.css" screen and (prefers-color-scheme: dark);
Specifically, around the media query at the end of the import. Removing the media query fixes the error
@import "../node_modules/@clr/ui/clr-ui-dark.min.css";
angular.json
package.json
The text was updated successfully, but these errors were encountered: