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

It is not possible to use Relay with Typescript in CRA #2702

Closed
ivosabev opened this issue Apr 1, 2019 · 1 comment
Closed

It is not possible to use Relay with Typescript in CRA #2702

ivosabev opened this issue Apr 1, 2019 · 1 comment

Comments

@ivosabev
Copy link

ivosabev commented Apr 1, 2019

I see two unresolvable issues:

There is a need for a babel configuration, due to the need of a single artifact directory

{
  "plugins": [["relay", { "artifactDirectory": "./src/__generated__" }]]
}

https://github.com/relay-tools/relay-compiler-language-typescript#relay-compiler

Typescript config clashes with CRA requirements for es5 and esnext:

{
  "compilerOptions": {
    "target": "es2015",
    "module": "es2015"
  }
}

https://github.com/relay-tools/relay-compiler-language-typescript#typescript

@alloy
Copy link
Contributor

alloy commented Apr 1, 2019

This should be addressed by #2646. For more info see relay-tools/relay-compiler-language-typescript#84.

@alloy alloy closed this as completed Apr 1, 2019
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

2 participants