Closed saravana-sk closed 4 months ago
Using ^
is a non-standard resolution mode and can no longer be used with Angular. It was never really supported but happened to work in the underlying tools being used, but now that libraries are being built with esbuild
this is no longer the case. There has been an automated migration (#27170) to account for them in import
/@use
statements, but not url
usages. Please see https://github.com/angular/angular-cli/issues/27239#issuecomment-2007313201 for a potential direction to follow.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
CSS containing background-image: url('^./assets/images/bg.svg') failing to build on a Library project in angular17
Minimal Reproduction
Using relative path with caret (^) in background: url()**** in component style.scss file does not working on a library project in angular17. Whereas it is working in an application project while building it.
Exception or Error
Your Environment
Anything else relevant?
No response