relay-compiler-webpack-plugin icon indicating copy to clipboard operation
relay-compiler-webpack-plugin copied to clipboard

The plugin can not find the correct path to .babelrc.js

Open narajaon opened this issue 4 years ago • 0 comments

  • Using nextjs v10
  • @babel/core v7.14
Invariant Violation: graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows
.                                                                                                                                                                                                                                                                                         
    at invariant (/home/project/node_modules/fbjs/lib/invariant.js:40:15)                                                                                                                                                                                                      
    at Object.graphql (/home/project/node_modules/relay-runtime/lib/query/GraphQLTag.js:24:52)

To solve this issue I had to ln -s .babelrc.js babel.config.js

narajaon avatar Aug 12 '21 17:08 narajaon