loading...

How do I make react app bundled in electron see the images

twitter logo github logo ・1 min read

I build a react app which is currently hosted on evagiantgroups.com; and works as expected. Then, I bundled in in electron, but it only works fine on first load (i.e, before react router actions is set in; any clicks on any link). Once I navigate the app, some images won't show again, just like in the photos.

I tried debug and found out the below:

  • on first load:
    file:///C:/Users/MY_PC_NAME/AppData/Local/Programs/app-evagiantgroup/resources/app.asar/build/static/media/thumb_d2.db671513.png

  • on reload or navigation:
    file:///C:/static/media/thumb_d2.db671513.png

Please kindly help. Thank you.

twitter logo DISCUSS
Classic DEV Post from May 18 '19

How to Practice for a Lit 🔥 Presentation

How to practice to deliver a powerful technical presentation.

Emeka Ndefo profile image
React Native developer passionate about creating simple and fast applications.