-
Notifications
You must be signed in to change notification settings - Fork 795
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
bug: Unknown compiler option 'useUnknownInCatchVariables'
.
#3170
Comments
'useUnknownInCatchVariables'
.
Hey @zardoy 👋 The reason this is occurring is that Stencil bundles the TypeScript compiler version for its users. The reason for this is that we need to make certain guarantees around typings, how TypeScript defines internal data structures when we compile web components and more. Because we have such strong guarantees that we need to meet, we internally pin the TypeScript version to a specific version. Currently, we pin TypeScript to v4.3 It looks like |
I personally think it is a typescript failure as it doesn't provide a way to reset |
Not at this time, there isn't a way to configure Stencil from an end user side to print a warning in this scenario |
This issue has been fixed in Stencil v2.14.0 which is now available. Thanks again for the report! |
Prerequisites
Stencil Version
v2.11.0
Current Behavior
Fails to start with this option present in tsconfig.
Expected Behavior
Not fail.
Steps to Reproduce
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
extend
ing 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?The text was updated successfully, but these errors were encountered: