-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix error in TS client packages with '--isolatedModules': #2473
Conversation
error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.
Assuming this is an error you get when trying to use values of |
Unfortunately, that’s not an accurate assumption: our code doesn’t import |
Would love to see this merged. |
+1 we've run into this too |
Is this fixable by using string literals in pg-protocol, then? A non-const enum seems less than ideal here. |
@charmander why not? It's just type declarations. The final value will always be one of those strings |
Sorry I missed this for a while, had some personal stuff to deal with. This looks good, and this also looks good...I'll take a look at both today & get one merged & released. I only need |
I just merged this: #2490 This should fix the issue, yeah? LMK if that looks good & I can release a new version w/ the change. |
hmmm thinking about it do you think the other way is gonna break any backwards compatibility? If those |
Exactly, it’s redundant. |
Considering that the |
okay awesome i'll keep it how it is then & get a new version pushed up today/tomorrow...thanks for your help & feedback & sorry for the delay! |
@brianc did you manage to get a version pushed with this fix? I'm still seeing the problem after rebuilding my
|
sorry - doing that right now! |
sorry for the delay
published w/ the fix - finally! Please lmk if you still have problems & thanks for the input & help here. ❤️ |
@brianc The problem still persists. @types/pg still has the old versions of pg-protocol and others |
@bart-opplane I cleared my package-lock.json and it brought in the latest version with the fix. It might be good for |
@davidje13 You're right. But not just Deleting |
error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.