-
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
[REGRESSION][v12.2] Font is no longer loaded #21662
Comments
@alan-agius4 this one is reproducable with Try the updated demo to see the issue. |
I am able to replicate this issue in 12.1, and unable to replicate when During the build you are also getting a related warnings when is
|
Yes, I know about those warnings during production build but this is a different issue which is happening during development build with
If I use Angular v12.2 fonts are not loaded (check Network -> Fonts to see the requests) and if I switch to v12.1, they are loading. |
I have uploaded it twice. The first time, I messed it up. Are you testing the one from the second upload |
I am using the latest and I am unable to reproduce. It's also hard to tell what changed without the reproduction. Ideally, in future it would be great if you could avoid zip files and instead push the minimal reproduction repository to github and link it here. |
Just the order of css files in angular.json changed. I tested it again from the zip file and could reproduce the bug. It's strange that it works for you. |
@alan-agius4 Sorry to bother you again but can you please test another reproduction when you have some time. Reproduction
Additional InfoIf you downgrade Angular to v12.1, you should see that the font is being loaded: |
@alan-agius4 I can't see from that screenshot if the EDIT: did you serve development build or production? |
So indeed the |
Do you plan to open bug report in EDIT: Downgrade |
Opened an issue webpack-contrib/css-loader#1365, let's see what's their response. |
Thank you. |
…to `2.2.1` Using `css-loader` version 6 exposed a bug in `mini-css-extract-plugin` which doesn't handle `@import` rules order correctly. See webpack-contrib/css-loader#1365 Closes: #21662
Closed via #21681 |
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.1
Description
I have attached a simple demo app which reproduces the issue. Basically following font import in
foo-bar.css
(included inangular.json
styles section) is ignored in v12.2 but works as intended in v12.1:🔬 Minimal Reproduction
ng serve
in the demo project provided🌍 Your Environment
🐛 Bug demo
import-bug2.zip
The text was updated successfully, but these errors were encountered: