-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
error TS2748: Cannot access ambient const enums when 'isolatedModules' is enabled #1
Comments
I'm pretty sure
Seems that TypeScript Handbook actually mentions that I should also remove I guess I might go for different approach: define |
I literally use the site search functionality (CTRL+F) to find where you read this would help. I see no mentions of that (I see only disabling Also the errors are most likely as you've most likely setup the "dependencies": {
# (...) - whatever dependencies you got here
- "@spacingbat3/disconnection": "^1.0.0"
+ "@spacingbat3/disconnection": "github:hainesdata/DisConnection"
} Then, you don't have to replace the |
Also another workaround would be to just ignore these errors, with |
In MacOS Monterey when attempting to build WebCord:
Error looks similar to this: vitejs/vite#5814
but forking and setting
preserveConstEnums
tofalse
as suggested in the referenced issue results in the following output:The text was updated successfully, but these errors were encountered: