#images in main.js file not shown after packaging

17 messages · Page 1 of 1 (latest)

smoky python
#

What libraries are you using? React, Vite..?

#

Any error?

bright quest
#

i mean, i'm just using electron for nodeJS

#

no error just missing images

smoky python
#

Are you sure? Have you checked the dev console?

bright quest
#

yesyes

#

i just run npm init, then installed electron

smoky python
#

I don't see how this is related to my question

bright quest
#

sorry i got wrong

#

yes it doesnt write any error

#

i've tried with electron builder, forge and packager but it never show me my images

#

i started think maybe i have to use a different "image declaration" for the packaged app..

signal harbor
#

open devtools and show screen with console

smoky python
signal harbor
#

i trust noone =/

bright quest
#

nevermind i already solve it

#

i just used "path.join(...)" inside "nativeImage.createFromPath(...)"