The following setup needed for VSCode Relay extension to work with monorepos, doesn't work with vite-plugin-relay and throws ReferenceError: require is not defined where graphql template literal imported from react-relay is present.
If you put apps/app/relay.config.json file with eagerEsModules: true it will work. This hints me that the root relay.config.json is not read and respected, but I may be wrong.
The following setup needed for VSCode Relay extension to work with monorepos, doesn't work with
vite-plugin-relay
and throwsReferenceError: require is not defined
wheregraphql
template literal imported fromreact-relay
is present.If you put
apps/app/relay.config.json
file witheagerEsModules: true
it will work. This hints me that the rootrelay.config.json
is not read and respected, but I may be wrong.relay.config.js