GraphQL with workspace
Is there an existing issue for this?
- [ ] I have searched the existing issues
Current Behavior
I have error GraphQL Config file is not available in the provided config directory when open workspace with several projects and one of then has gql. If I open project all worked.
Expected Behavior
No response
Steps To Reproduce
No response
Module pattern
- [ ] graphiql-umd
- [ ] graphiql-esm
- [ ] graphiql-commonjs
Environment
- GraphiQL Version:
- OS:
- Browser:
- Bundler:
- `react` Version:
- `graphql` Version:
Anything else?
No response
@pranko17 workspaces is not supported yet, we are adopting support soon!
@pranko17 workspaces is not supported yet, we are adopting support soon!
Any updates for this?
@acao Any updates on this? I'm still facing GraphQL Config file is not available in the provided config directory in multi-root workspaces.
@acao Any updates on this? I'm still facing
GraphQL Config file is not available in the provided config directoryin multi-root workspaces.
using package.json as my config file on each of my projects worked for me, try it.
// package.json
{
"graphql": {
"schema": "./gqlGen/schema.gql",
"documents": "./graphql/**/*.{graphql,js,ts,jsx,tsx,gql}"
},
}
Changing the order of the workspace folders worked for me.
It was trying to access the config file from the first workspace folder, rearranging the folder with the config to the first position fixed the issue.