loading...

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

emexrevolarter profile image Emeka Ndefo ・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.

Discussion

markdown guide