-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work when relay config is not at vscode opened folder root #22
Comments
Hmm, good question. I don't have a similar setup and naively nothing comes to mind, so perhaps a mention in the README would at least be helpful for now–although a better solution would be nicer. |
I'm having the same problem as @janicduplessis. It's not for a monorepo, but a common vscode workspace in which I have all the projects of my company. The Apollo GraphQL extension logs display the following message:
The solution of using |
Under the hood |
I have a monorepo setup with multiple relay projects. I usually open vscode at the root of the repo. The apollo vscode project seem to handle multiple apollo.config.js files well but relay-config does not.
Setup looks like:
The issue is that relay-config expects
cwd
to contain a config file but in the contextapollo.config.js
is run it will be set to the root folder opened in vscode. As a workaround I changed my apollo.config.js toNot sure if we just want to change the documentation to this instead or find a better way to fix the issue.
The text was updated successfully, but these errors were encountered: