question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash with multiple targets

See original GitHub issue

I have a webpack.config.js with multiple targets as described here, for building a bundle for electron-main and electron-renderer. The final export is:

module.exports = [mainConfig, rendererConfig];

If I set it to either config individually, e.g.

module.exports = mainConfig;

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:

$ node_modules/.bin/webpack-cli 
Starting type checking service...
$

As far as I can tell it generates the output for rendererConfig, and then just immediately exits without generating mainConfig, or printing any stats. It always generates rendererConfig 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:

$ node_modules/.bin/webpack-cli --progress
Starting type checking service...
97% [0] $ 

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
piotr-olescommented, May 20, 2020

@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.

0reactions
webpack-botcommented, Aug 20, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating Firebase Crashlytics for Multiple Targets in iOS
Integrating Firebase Crashlytics for Multiple Targets in iOS — Part II. In this tutorial, we will be looking at how to handle multiple...
Read more >
Crashlytics Fabric multiple targets - Stack Overflow
I am working on 6 targets in single projects,getting all crashes in Fabric By target wise. Target-->Build phases-->Add Run script. Share.
Read more >
Multi-vehicle crash scene in Target store parking lot in San ...
A crash involving multiple vehicles in a Target parking lot in San Mateo Wednesday sent three people to a trauma center, police said....
Read more >
3 injured in multi-vehicle crash in San Mateo Target parking lot
Three people were injured in a multi-vehicle crash in a Target parking lot in San Mateo Wednesday afternoon.
Read more >
multi-targets crash mobile browser + many targets ... - GitHub
multi -targets crash mobile browser + many targets are problematic to compile targets.mind #22. Closed. HeimMatthias opened ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found