Skip to content

Module not found: Error: Must provide Source #56

Open
@jonathangaldino

Description

This will occur if you have a monorepo setup and, somehow, you also got two version of graphql installed.
Since the release of v15, instrospectionQuery is deprecated. There is a new function called getIntrospectionQuey.

Somehow, this lib was using the most recent version of graphql available in node_modules and was trowing Module not found: Error: Must provide Source.

For me, to fix this matter I had to downgrade all graphql versions to v14. In my setup, I had a package called server and client that was using graphl v15, since graphql is a dependency of this lib, I ended up with two versions of it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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