-
-
Notifications
You must be signed in to change notification settings - Fork 27k
[TS] Const enums in third party packages #5738
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
Comments
Hi @Meemaw! I recommend that you suggest the third party lib maintainers that they remove const enum usage since babel typescript is getting popular. Maybe make them a PR. I'm closing this but let me know if you have any other question. |
@brunolemos Hi, I'm trying to use CRA with monaco-editor. I'm having the same issue with microsoft/TypeScript#20703 (comment).
|
Have you tried turning off skipLibCheck? I'm using Monaco in an app as well (0.12 I think so a few months old) |
@ianschmitz Thanks! It worked 👍 I was a bit confused with the word I guess it is one of the best way to solve this issue to set skipLibCheck as true. |
FYI @noelyoo a downside to |
@alangpierce could you describe how you set it up? @brunolemos why are all of these |
It really depends on the build system, but I think in most situations setting Some examples that I just tried:
In every one of these cases, setting |
@alangpierce I use Create React App with Scripts and your solution somehow doesnt work for me tsconfig.json before react-scripts start I change the right config files because when I entered false data it crashed Do you know what it could be , or how to use const enums even with isolatedModules? Thank you so much |
@tonoslav I just used |
I'm having problems using Typescript with the dependencies that use Const enums. I'm getting the folowing error:
Type error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided
.I wanted to disable the flag but it seems CRA is forcing it. Is there a workaround around this?
The text was updated successfully, but these errors were encountered: