Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run the newly created Angular application

I've just created an app, but I can't launch it.

Error: The loader “C:/C#/Angular/my-app/src/app/app.component.css” didn't return a string.

Here is Terminal

Versions

Trying to reinstall Angular,Node js but nothing helps...

like image 486
swaggoo Avatar asked Aug 12 '26 19:08

swaggoo


1 Answers

I confirm that I can reproduce the problem if I create the project under a directory that contains the # character and that the problem is fixed if I just create the same project under a directory that does not contain the # character.

So, the temporary solution is : create the project under another directory.

I feel like this character should be avoided in a path anyway but should still technically be authorized.

I opened a bug to the Angular team here to see if this behavior is normal and will update the answer as soon as I get a response.

EDIT : This is a known issue that comes from webpack here

like image 133
Arnaud Denoyelle Avatar answered Aug 15 '26 08:08

Arnaud Denoyelle