paymoapp / electron-shutdown-handler

Handle shutdown messages on windows in your electron app and delay system shutdown
MIT License
22 stars 8 forks source link

Cannot find module - production build #2

Closed hosnar closed 5 months ago

hosnar commented 1 year ago

Hi. This lib works fine when i test it on development, but if i build for production with electron-builder i get this error on app startup: "Error: Cannot find module '@paymoapp/electron-shutdown-handler' Require stack: pathToAppData/app.asar/background.js".

It is not installed as dev dependency, so that shouldn't be an issue. Any idea what could be the problem? Thank you

gergof commented 1 year ago

Hello! Do you use some kind of bundler for your electron main? Can you provide your electron-builder configuration?

gergof commented 5 months ago

Closing due to inactivity