Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
Yes
Description
With Angular 19, the library builder breaks if an SCSS file tries to import something (in this case a variable) from external modules or files, without explaining the error.
These two snippets are supposed to do the same, and produce the same error.
@use 'sass:map';
@use '../theming/theme';
p {
background-color: #{map.get(theme.$primary, 98)};
}
@use 'sass:map';
@import '../theming/theme';
p {
background-color: #{map.get($primary, 98)};
}
theme.scss:
$primary: (
98: #f0f0f5,
);
Please provide a link to a minimal reproduction of the bug
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
Yes
Description
With Angular 19, the library builder breaks if an SCSS file tries to import something (in this case a variable) from external modules or files, without explaining the error.
These two snippets are supposed to do the same, and produce the same error.
theme.scss:
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-yeykor?file=angular.json&view=editor
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response