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.

Add '--bail' option when running '--build' mode

See original GitHub issue

Search Terms

project references, bail, cascade, errors

Suggestion

When building multiple Typescript projects using the --build flag, and the projects had dependencies on each other, an error in an upstream project can cause a cascade of errors from downstream projects that obscure the original error.

A possible solution would be a --bail option (or however you’d like to name it). When provided in --build mode, it would prevent all projects downstream from a project with an error from building. While this may hide downstream errors that are only found when re-running, it will prevent “false-positive” errors from being shown.

Use Cases

Using --build mode on a large web of project references, without the possibility of being flooded with spurious errors due to one upstream typo.

Checklist

My suggestion meets these guidelines:

  • This wouldn’t be a breaking change in existing TypeScript/JavaScript code
  • This wouldn’t change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn’t a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript’s Design Goals.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jstevanscommented, Feb 28, 2019

Ah, that’s a helpful distinction. Is there an existing way to suppress the warnings from indirect references, to match our desired behavior?

1reaction
jstevanscommented, Feb 20, 2019

I believe I have a small repro of the issue we’re seeing.

In our repo, a single erroneous import can cause thousands of these errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mode
Mode. Providing the mode configuration option tells webpack to use its built-in optimizations accordingly. string = 'production': 'none' | 'development' ...
Read more >
7.3. Network Bonding Using the NetworkManager ...
VLAN on Bond and Bridge Using the NetworkManager Command Line Tool, nmcli · 10.8. ... nmcli con add type bond ifname mybond0 bond.options...
Read more >
Posting Bail on Your Outstanding Warrant
A bail bond is a popular option that most people take to avoid arrest on an outstanding warrant. Contact Bail Hotline and we...
Read more >
Running collections on the command line with Newman
It's built with extensibility in mind so that you can integrate it with your continuous integration (CI) servers and build systems. Newman ...
Read more >
Configuration | WebdriverIO
The following options are defined when using the webdriver protocol package: ... When running in standalone mode, the only log generated by WebdriverIO...
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