saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.97k stars 229 forks source link

Nextron ipc-communication fails to work in production. #338

Closed Lekhak123 closed 1 year ago

Lekhak123 commented 1 year ago
import electron from 'electron';

const ipcRenderer = electron.ipcRenderer || false;

The "ipcRenderer" is always false in production build. It works fine in development, but doesn't seem to work after building in production.

alexis-piquet commented 1 year ago

Hey, nice to read you @ruriko123. You must wrap it in a context as I've explain it here. If it solve your issue don't forget to close it, and if you have other questions don't hesitate to comeback to me. Have a nice coding day !

0xPT commented 1 year ago

https://github.com/saltyshiomix/nextron/tree/main/examples/ipc-communication

So this example just doesn't work in production???