Skip to content

bug: Unknown compiler option 'useUnknownInCatchVariables'. #3170

@zardoy

Description

@zardoy

Prerequisites

Stencil Version

v2.11.0

Current Behavior

Fails to start with this option present in tsconfig.

Expected Behavior

Not fail.

Steps to Reproduce

  1. Grab https://github.com/ionic-team/stencil-component-starter.
  2. Add this to compilerOptions of tsconfig:
"useUnknownInCatchVariables": true,

Code Reproduction URL

https://github.com/ionic-team/stencil-component-starter

Additional Information

For context: I can't really just remove this flag, since its in my shared tsconfig (I'm extending from it).
I don't really understand how the compiler works without installing typescript as dependency. I can only see you have locked TS version in package.json, but why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions