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 source maps mismatch in angular 16 #55508
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
bug
core: CSS encapsulation
core: stylesheets
Milestone
Comments
I had a look at this and it appears to be caused the by the Angular compiler style shimming logic in angular/packages/compiler/src/shadow_css.ts Line 659 in 811fe00
|
alan-agius4
added
area: compiler
Issues related to `ngc`, Angular's template compiler
core: stylesheets
core: CSS encapsulation
labels
Apr 24, 2024
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
alan-agius4
added a commit
to alan-agius4/angular
that referenced
this issue
Apr 24, 2024
Previously, multiline selectors were being converted into single lines, resulting in sourcemap disruptions due to shifts in line numbers. Closes angular#55508
AndrewKushnir
pushed a commit
that referenced
this issue
May 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
bug
core: CSS encapsulation
core: stylesheets
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
After upgrading my project to Angular v16 from Angular v14, I noticed that the source maps of my scss files were mismatched
The source maps changed (not necessarily correctly) when I removed imports of external packages
I created a test project using angular cli and installed two of the packages we use - bootstrap and @ng-select/ng-select and I saw that the problem is restored
before importing bootstrap and @ng-select/ng-select scss
app.component.scss
after importing bootstrap and @ng-select/ng-select scss
Importing bootstrap or ng-select separately works fine. I also tried other packages combinations and got mismatched source maps
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/node-ej8xiu?file=index.js
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: