Problem with images when buildar - Ionic 2

Asked

Viewed 249 times

-1

I have a project and everything is in accordance as in this link: https://stackoverflow.com/questions/39952214/correct-way-to-use-image-assets-in-ionic-2

The images are in the src/Assets/img folder but when I build them, they don’t appear on the device (only in the browser when I do Ionic serves).

Yesterday everything was ok, the last build I did appeared right... today, for some reason, they no longer appear at all. I already deleted the folders and created again and nothing.

I’ve even started a new project, copied the files and still not showing.

  • Cool guy q u solved so, to see q your topic eh old I’m on Ionic 3 and going through this problem, but soh am using minute letters and nothing to work. if you have any other idea give me a tap there. thanks

1 answer

1


After much testing, I managed to solve the problem:

All my images had at least one uppercase letter, and when typing the path in the code, I used only lowercase characters, ie:

The browser did the hit for me, but the app didn’t. In short: do not name your images with uppercase and minuscule letters to avoid this kind of confusion.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.