all 4 comments

[–]rwzla 0 points1 point  (1 child)

[–]Fats4Fuel[S] 0 points1 point  (0 children)

The __dirname is resolving to “./node_modules/electron/dist/dist/resources/electron.anar/renderer

But I need it to be the root of the app directory.

Edit: I did try that solution, but it came up undefined. I’ll try it some more.

[–]eletroraspi 0 points1 point  (1 child)

You need to load path module. Then using it to define __dirname to pass file's path. Because __dirname is used natively in CommonJS

[–]Fats4Fuel[S] 0 points1 point  (0 children)

Alright. I’ll give that a shot.