Skip to content
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

Version 2.00+ Doesn't work with service and .js config file. #239

Open
bootsmann1995 opened this issue Nov 28, 2024 · 0 comments
Open

Version 2.00+ Doesn't work with service and .js config file. #239

bootsmann1995 opened this issue Nov 28, 2024 · 0 comments

Comments

@bootsmann1995
Copy link

bootsmann1995 commented Nov 28, 2024

My Apollo vscode extention doesn't work using newer versions.

I've created a config file looking like this: (apollo.config.js)

module.exports = { client: { localSchemaFile: "./schema.graphql", service: { name: "datocms-test", url: "<env>", headers: { authorization: "Bearer <env>", }, }, includes: [ "./queries/**/*.gql",], }, };

If i use version 2.00 + the vscode extension gives me this error:
Service stats could not be loaded. This may be because you're missing an apollo.config.js file or it is misconfigured. For more information about configuring Apollo projects, see the guide here (https://go.apollo.dev/t/config).

image

And if I use 1.20.0 it works without changing the config file.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant