We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The line const electron = require("electron");
in the client script is giving me the error
The text was updated successfully, but these errors were encountered:
Verify if your BrowserWindow function has the webPreferences value, with a nodeIntegrations: true. It will resolve your problem with the error of require. See more here https://stackoverflow.com/questions/44391448/electron-require-is-not-defined
Sorry, something went wrong.
Try this as @LuC4SC4S said.
let mainWindow = new BrowserWindow({ height: 800, width: 800, show: false, webPreferences: { nodeIntegration: true, }, });
No branches or pull requests
The line
const electron = require("electron");
in the client script is giving me the error
The text was updated successfully, but these errors were encountered: