Open sturla78 opened 2 years ago
same here
may be the same issue https://github.com/electron/remote/issues/66
require("@electron/remote/main")
, may not match the correct package @electron/remote (@electron/remote/main is requireing a path "@electron/remote/main/index.js"), and cause bundle tools not bundle it.
And main is not export from package "@electron/remote", you can try the way from issue https://github.com/electron/remote/issues/66#issuecomment-1016140530 mentioned.
same here. Sadly the suggestion didn't work with electron-forge.
I used
npm install
and then it worked.
in package.json move @electron/remote to dependencies, not devDependencies then it works
Hello, i have a strange behavior using @electron/remote with interceptFileProtocol:
main.js
index.htm (render side)
package.json
If i run the application locally "npm start" all work fine. If i run a packaging script "npm run pack" and move the content of the folder "dist" to another location (the dist folder should be self-consistent) i have the following error from @electron/remote module on render side (open debug tool with ctrl+shift+i):
Uncaught Error: Cannot find module '@electron/remote' Require stack:
The strange thing is that if i use BrowserWindow.loadFile instead of BrowserWindow.loadURL all work file also on dist folder.
What am I doing wrong on this steps ?
Thanks for support.