Electron-forge: [typescript-webpack] compiling preload hangs

Created on 9 Jan 2020  路  3Comments  路  Source: electron-userland/electron-forge

Preflight Checklist

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project follows, as appropriate.
  • [x] 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.47

  • Electron Version:

    • 7.1.8

  • Operating System:

    • Windows 10 (1909)

  • Last Known Working Electron Forge version::

    • None

Expected Behavior

I was making a preload script, and then connecting by following this scheme (https://js.electronforge.io/plugin/webpack/interfaces/webpackpreloadentrypoint) in package.json

Actual Behavior

To Reproduce

  1. Create new app using 'npx create-electron-app my-new-app --template=typescript-webpack'
  2. Add any preload.ts file
  3. Add MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY to main.ts file
  4. Add to preload config to package.json

You can clone my repository to see the issue.

Additional Information

Just using 'electron-forge start' to start the project, and then it stucks.
Picture

Bug webpack

Most helpful comment

Remove the async: false option from the ForkTsCheckerWebpackPlugin constructor in webpack.plugins.js. #1497 removes it from the template.

All 3 comments

Any update or work around on this?
Can't compile the project because of this.

Using preload works fine with the webpack template. It's just when using the typescript-webpack template, it hangs.

Remove the async: false option from the ForkTsCheckerWebpackPlugin constructor in webpack.plugins.js. #1497 removes it from the template.

Was this page helpful?
0 / 5 - 0 ratings