Mohamed Karkotly
Mohamed Karkotly

Reputation: 1517

Angular Error: Conflict: Multiple assets emit different content to the same filename file.svg

I have this css in my .component.scss file

.bg {
  background: url("../../../../assets/images/file.svg") center center no-repeat;
}

and there's just an svg file in that path, so whenever i change anything in that svg (i.e. fill attribute) I'm getting this error

Error: Conflict: Multiple assets emit different content to the same filename file.svg

None of SO questions matched my case.

When running ng serve again it works fine, but why is this happening?

Upvotes: 7

Views: 8941

Answers (1)

Avraham Weinstein
Avraham Weinstein

Reputation: 894

Try to delete the .angular folder and run ng serve again.

Upvotes: 25

Related Questions