Closed note89 closed 8 years ago
Well of course i found the solution directly after posting this but after spending the whole day :P Maby the Relay documentation should tell about this bug ? and that you need this hack if you dont want to use the relay starter kit. https://github.com/BerndWessels/babel-relay-plugin-loader
It looks like the Relay plugin isn't configured correctly - the Relay.QL template literals are either being transformed away before the relay plugin sees them (note the call to _taggedTemplateLiteral at the top) or it isn't running at all.
I'd recommend double checking your Babel configuration and the docs for the relay plugin. If that doesn't help, asking on stack overflow or the discord channel might be the best bet since there's a wider audience of users to help diagnose problems.
Looks like the original issue was resolved, so closing due to inactivity. PRs welcome, however, from anybody who wants to improve the documentation. Thanks @note89.
Hi don't really know where this issue fits in. But I have trouble getting relay to work in my phoenix project.
So here is my app https://github.com/note89/phoenix-hipster-stack/tree/master/web/static/js
package.json
I get this error when i visit my localhost.
Stack trace
What I have tried. localhost:4000/graphql works changing app.js into plain React without Relay works making typos in the schema.json makes webpack complain. compiling with babel in the terminal seems to do what it should ? (guess its using the .babelrc)