Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`angular` how to fix this warning `Emitted value instead of an instance of Error`

My angular CLI works fine. getting the images as well. But still, I am getting a warning like this:

WARNING in ./src/app/home/home.component.css
(Emitted value instead of an instance of Error) postcss-url: C:\Projects\dhl-testing\src\app\home\home.component.css:4:3: Can't read file 'C:\Projects\dhl-testing\src\app\home\assets\images\dhlmoped.jpg', ignoring

and

WARNING in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./src/styles.css
(Emitted value instead of an instance of Error) postcss-url: C:\Projects\dhl-testing\src\assets\css\sm\header.css:43:5: Can't read file 'C:\Projects\dhl-testing\src\assets\css\sm\assets\images\icon-user.png', ignoring

what are these warnings and how to fix them?

like image 237
user2024080 Avatar asked Apr 24 '18 14:04

user2024080


1 Answers

Add '/' to the beginning of the path: example:'/assets/images/logo.png' where assets is located in the root under src Folder

like image 105
Shashank Gaurav Avatar answered Sep 19 '22 18:09

Shashank Gaurav