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 agree to follow the code of conduct that this project follows, as appropriate.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Issue Details
Electron Forge Version:
6.0.0-beta.56
Electron Version:
v12.0.9
Operating System:
Windows 10 (20H2)
Last Known Working Electron Forge version::
6.0.0-beta.55 with plugin-webpack 6.0.0-beta.54
Expected Behavior
No errors in console
Actual Behavior
The following error shows in console, can confirm this breaks react, but also shows in a clean installation of electron-forge
Uncaught ReferenceError: require is not defined
at Object.url (index.js:332)
at __webpack_require__ (index.js:361)
at fn (index.js:548)
at eval (parseURL.js?acf0:3)
at Object../node_modules/webpack-dev-server/client/utils/parseURL.js (index.js:204)
at __webpack_require__ (index.js:361)
at fn (index.js:548)
at eval (index.js?8389:24)
at Object../node_modules/webpack-dev-server/client/index.js?http://0.0.0.0&port=3000 (index.js:118)
at __webpack_require__ (index.js:361)
To Reproduce
Run npx create-electron-app my-new-app --template=webpack
Run cd my-new-app
Run npm start
Adding target: 'web' in webpack.renderer.config.js solves this issue and can confirm it also works with React.
I have no clue if it has added any side effects.
Adding only webPreferences: { nodeIntegration: true } to the BrowserWindow options didn't work but having both works.
Preflight Checklist
Issue Details
6.0.0-beta.56
v12.0.9
Windows 10 (20H2)
6.0.0-beta.55 with plugin-webpack 6.0.0-beta.54
Expected Behavior
No errors in console
Actual Behavior
The following error shows in console, can confirm this breaks react, but also shows in a clean installation of electron-forge
To Reproduce
Run
npx create-electron-app my-new-app --template=webpack
Run
cd my-new-app
Run
npm start
The error should appear in the dev tools console
The result of the steps above: https://github.com/RodPaDev/beta.56-console-err
Additional Information
The text was updated successfully, but these errors were encountered: