0

In my project i have added a config file (JSON format) for my static values. Problem is , project is working when i type npm start, but when i build exe (using electron-builder .), it is not working

My folder structure

According to this answer Electron - How to add external files? i change my package.json but it didn't work. I have added my folder structure and package.json

enter image description here

This is the error i'm getting enter image description here

1 Answers1

0

Found a solution npm config (https://www.npmjs.com/package/config) not working (https://github.com/lorenwest/node-config/issues/403 )in electronjs. But after using this https://github.com/dw1284/electron-node-config it worked.