Skip to content

Silent errors modeΒ #50361

@erkinalp

Description

@erkinalp

Suggestion

πŸ” Search Terms

silent errors, errors without messages, silent failure

βœ… Viability Checklist

  • 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, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

When supplied --silent-errors, check for all errors and fail in the first error with no error messages other than "Error detected, compilation failed", without proceeding further to produce any error messages.

πŸ“ƒ Motivating Example

πŸ’» Use Cases

This may be useful in cases the build is linted in a separate development environment and it is enough to fail without seeing the reason of failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions