Skip to content

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

Open
@bootsmann1995

Description

@bootsmann1995

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions