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
{{ message }}
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Hey @serge-hulne, this quick-start has nodeIntegration disabled, so Node is not exposed to the renderer process. This is a default that's there for security purposes.
To enable Node integration, you can modify the mainWindow constructor in main.ts:
// Create the browser window.constmainWindow=newBrowserWindow({height: 600,webPreferences: {preload: path.join(__dirname,"preload.js"),nodeIntegration: true,},width: 800,});
require or import statement doesn't work in "renderer.ts"
Is this feature missing?
How do you divide the code into modules if the renderer needs to import stuff from a lib?
Thanks.
The text was updated successfully, but these errors were encountered: