Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic React public assets folder

$
0
0

@i0nic wrote:

React app uses assets folder inside src folder (Normally you would put images into the src and import them in code to get their paths.).
Ionic start creates public folder outside src.
How do I work with images, fonts, etc in this app if React – Module not found: You attempted to import …/…/public/assets/images/…jpg which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>