-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Crash with multiple targets #10917
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
Comments
Difficult to see what the problem is here. You could try |
That got a little more info:
I'll try removing some plugins. |
Ah I got lucky - the issue is caused by I'll try to make a small repro with just that plugin (but I might just ditch it and use |
@Timmmm Could you close this issue and re-create it on the ForkTsCheckerWebpackPlugin issues? I'm currently working on the rewrite of this plugin and better support for multiple targets is on the list to improve. It would be really nice if you could create a reproduction repository. |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
I have a
webpack.config.js
with multiple targets as described here, for building a bundle forelectron-main
andelectron-renderer
. The final export is:If I set it to either config individually, e.g.
then it works perfectly. The output is generated in the correct directory, and Webpack prints some stats at the end.
However if I export both configs in an array, then Webpack seems to crash! This is the full output I get:
As far as I can tell it generates the output for
rendererConfig
, and then just immediately exits without generatingmainConfig
, or printing any stats. It always generatesrendererConfig
irrespective of the order (I guess because they are run in parallel?).I don't have a minimal reproducer yet, because honestly that would be a ton of work, and it might be a lot easier if there were some way to get Webpack to actually output some logs, but I've tried a ton of things - I even read the source code - and it doesn't seem to have any way to output debug logs at all!
--verbose
does nothing.stats: 'verbose'
is useless because it crashes before printing stats. The only thing that seems to print anything at all before it crashes is--progress
, which gets up to 97% normally but doesn't print any useful errors:How can I debug this?
webpack version: 4.43.0
webpack-cli version: 3.3.11
Node.js version: 14.0.0
Operating System: MacOS 10.14.6
The text was updated successfully, but these errors were encountered: