Skip to content

Commit 42e8078

Browse files
committed
describe workaround for error in electron
1 parent 2cf476d commit 42e8078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/typescript-+-webpack-template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ There have been reports that using the Git Bash command line on Windows specific
1515
{% endhint %}
1616

1717
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.
18+
19+
Note: 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." The appropriate solution for you depends on your specific app, but a temporary fix can be performed with two changes to `main.js`. First, comment out line 23 (`mainWindow.webContents.openDevTools()`), second, add `app.disableHardwareAcceleration()` at the end of the file.

0 commit comments

Comments
 (0)