https://github.com/vincentriemer/new-relay-compiler-issues-repro
https://github.com/vincentriemer/new-relay-compiler-issues-repro
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vincentriemer/new-relay-compiler-issues-repro
- Owner: vincentriemer
- Created: 2021-11-30T21:28:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-30T23:15:26.000Z (over 3 years ago)
- Last Synced: 2025-01-15T09:03:31.975Z (5 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# New Relay Compiler/Entrypoint OSS Env Issues
## Reproduction Steps
1) clone repo
2) run `npm install`
3) run `npm test`### NOTE
* This should theoretically run the relay compiler and then run the typescript compiler. The tsc run currently fails due to (at least) the issues that are enummerated in the next section
* There is no expectation that the code that comes out of the TS compiler is runnable as that isn't within the scope of this minimal repro
* If you get the current `relay.config.js` working you should also try to uncomment the multi-project version inside it to see if that works as well## Explicit Issues Encountered (so far)
* `relay-compiler`
1) New rust compiler requires watchman for non-watch build (the docs suggest otherwise)
2) `$Parameters` files are not generated when you have a persistConfig & query is marked as @preloadable
* `relay.config.js`
1) `params` key required in `persistConfig` section of relay config
2) `persistConfig` does not work in a multi-project config
* `src/App.tsx`
1) The `AppQuery` Typescript type imported from `__generated__/AppQuery.graphql` is not emitted by the new relay-compiler
* `src/Post.tsx`
1) The fragment Typescript type `Post_submission$key` emitted by the compiler contains a `" $fragmentSpreads"` key while the `useFragment` type expects a `" $fragmentRefs"` key.