Skip to content

v7.6.0+ supresses Webpack errors on electron-forge start when not using DEBUG flag #3875

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
3 tasks done
kurbar opened this issue Mar 10, 2025 · 0 comments
Open
3 tasks done
Assignees
Labels
cli plugin/webpack Issues or pull requests related to first-party webpack plugins/templates

Comments

@kurbar
Copy link

kurbar commented Mar 10, 2025

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Forge version

7.7.0

Electron version

34.3.0

Operating system

macOS 15.3.1

Last known working Forge version

7.5.0

Expected behavior

electron-forge start displays any Webpack errors that prevent the command from succeeding.

Actual behavior

electron-forge start silently exits with non-zero exit code.

Steps to reproduce

  1. Create a new Forge app with e.g. npx create-electron-app@latest test-app --template=webpack-typescript
  2. Easiest test for me was to reserve port 9000 (logger) for something. E.g. mkdir -p ~/tmp-http && npx http-server -p 9000 ~/tmp-http. Or you can set loggerPort in forge.config.ts WebpackPlugin to a known in-use port.
  3. Try to run electron-forge start or npm start.

Additional information

When using DEBUG=electron-forge:*, then the errors do show up but seems like an unnecessary hassle for development. Especially when migrating from v7.5.0

@erickzhao erickzhao self-assigned this Mar 11, 2025
@erickzhao erickzhao added plugin/webpack Issues or pull requests related to first-party webpack plugins/templates cli labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli plugin/webpack Issues or pull requests related to first-party webpack plugins/templates
Projects
None yet
Development

No branches or pull requests

2 participants