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
@types/ - TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. #28744
Comments
Any movement on this? I am running into the same issue. According to the comments here: microsoft/TypeScript#20703 (comment), it should be changed to a union type of literals instead. Removing |
This issue has been resolved in #29783 but a naughty bot closed the PR as a result of Travis CI failing, seemingly due to errors from completely unrelated packages. Looks like a maintainer/contributor with adequate permissions will need to manually re-open the PR to make travis test it again. |
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the |
If you know how to fix the issue, make a pull request instead.
@types/xxxx
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.I updated my builds to use Babel7 after following the official blog post.
However,
@types/range-parser
(which appears to a dependency ofexpress
) throws an error during compilation:TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.
I can disable
isolatedModules
and my project builds but the guide says it is needed todisallow features that require cross-file information for emit
.The text was updated successfully, but these errors were encountered: