DEV Community

Emeka Ndefo
Emeka Ndefo

Posted on

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

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.

Top comments (0)