Skip to content

Unable to locate stylesheet when building my project after Angular 17 migration #103106

Closed Answered by justToPassage
justToPassage asked this question in Profile
Discussion options

You must be logged in to vote

Hello,

I found an alternative. I encountered this issue when building my project. To be precise, these two CSS imports are in the index.html file. So, I decided to import these CSS files dynamically within the AppComponent. I created a method that allows loading styles dynamically which I call in the ngOnInit of the AppComponent with the css file path.

This issue appears because, es-builder can't to solve relative path.

Replies: 3 comments 1 reply

This comment was marked as off-topic.

@justToPassage
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by justToPassage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Profile
3 participants