-
Notifications
You must be signed in to change notification settings - Fork 69
Version 9 incompatible with relay-compiler version 7? #151
Comments
|
after fixing file imports, this error will occurs
the error throws from this line const ast: ts.Statement[] = IRVisitor.visit(node, createVisitor(options)); |
Relay now uses its own ast so some updates are needed to use their schema helpers instead of using graphql-js. I made the changes to the compiled files quickly just to get it working if that can help someone https://gist.github.com/janicduplessis/6c134b4c21168aa28b81e3fd818ec9bd We'll need to update this based on the recent changes in https://github.com/facebook/relay/blob/master/packages/relay-compiler/language/javascript/RelayFlowGenerator.js and https://github.com/facebook/relay/blob/master/packages/relay-compiler/language/javascript/RelayFlowTypeTransformers.js |
I guess it'll be quite a lot of work to get it relay v7 compatible. I made a fork with some of the changes here: https://github.com/sorenhoyer/relay-compiler-language-typescript - not sure I'll have time over the weekend to continue, so hopefully somebody else is working on this and will beat me to it :D |
Thanks for all jumping on this, people, really happy with the community effort 🙌 |
Fixed by #155 |
I guess this commit to relay-compiler facebook/relay@536f781 are causing some deep imports like this to fail?
relay-compiler-language-typescript/src/TypeScriptGenerator.ts
Line 16 in bbaf300
The text was updated successfully, but these errors were encountered: