You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a terrible time trying to get electron-serve into my application. I'm not sure which part of my configuration was causing it to break but no matter what I tried I kept getting a require() of ES Module error. And of course if you dont have a way to serve your files in production electron becomes pretty useless.
Anyway if anyone finds themselves in the same boat here is the solutions that worked for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I had a terrible time trying to get electron-serve into my application. I'm not sure which part of my configuration was causing it to break but no matter what I tried I kept getting a
require() of ES Module
error. And of course if you dont have a way to serve your files in production electron becomes pretty useless.Anyway if anyone finds themselves in the same boat here is the solutions that worked for me.
Utilizing the electron protocol handler:
Middleware to handle http routing in production
initially load the window.
Beta Was this translation helpful? Give feedback.
All reactions