Skip to content

Warning and workaround for error in electron #235

New issue

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

Open
wants to merge 4 commits into
base: v6
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions templates/webpack-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ npx create-electron-app@latest my-new-app --template=webpack
```

Once you've initialized the template, you'll need to run `npm start` in the generated directory. See the [Webpack Plugin](../config/plugins/webpack.md) documentation for Electron Forge-specific configuration options.

{% hint style="warning" %}
Executing `npm start` immediately after creating the app will reliably produce two errors due to [an issue with electron](https://github.com/electron/electron/issues/41614)that is currently marked as "wontfix." A temporary fix for one of the errors can be performed by commenting out line 23 (`mainWindow.webContents.openDevTools()`) until you have found a solution that is appropriate with your specific app.
{% endhint %}