We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary: create-react-app now supports Typescript, using Babel 7. It uses --isolatedModules though, which does not work with const enums.
Simply changing from const enum to enum should work.
const enum
enum
Expected Behavior:
A simple CRA project should compile correctly.
Actual Behavior:
/app/node_modules/apollo-cache-hermes/src/schema.d.ts Type error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. TS1209 91 | * 92 | */ > 93 | const enum NodeSnapshotType { | ^ 94 | EntitySnapshot = 0, 95 | ParameterizedValueSnapshot = 1, 96 | }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary:
create-react-app now supports Typescript, using Babel 7.
It uses --isolatedModules though, which does not work with const enums.
Simply changing from
const enum
toenum
should work.Expected Behavior:
A simple CRA project should compile correctly.
Actual Behavior:
The text was updated successfully, but these errors were encountered: