Skip to content
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

Does not work with create-react-app with Typescript #406

Open
mattias800 opened this issue Dec 5, 2018 · 0 comments
Open

Does not work with create-react-app with Typescript #406

mattias800 opened this issue Dec 5, 2018 · 0 comments

Comments

@mattias800
Copy link

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.

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 |     }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant