Skip to content

Incompatible NexusPlugin types between nexus 1.3.0 and nexus-federation-plugin 0.0.12 #11

Description

@platzhersh

I wanted to use your plugin in an existing Typescript project where we already have nexus 1.3.0 in place, and already when I tried adding it as a plugin in the makeSchema function call, I got a type error:

Der Typ "import(".../node_modules/nexus-federation-plugin/node_modules/nexus/dist/plugin").NexusPlugin" kann dem Typ "import(".../node_modules/nexus/dist/plugin").NexusPlugin" nicht zugewiesen werden.
  Die Typen von "config.fieldDefTypes" sind zwischen diesen Typen nicht kompatibel.
    Der Typ "import(".../node_modules/nexus-federation-plugin/node_modules/nexus/dist/plugin").StringLike | import(".../node_modules/nexus-federation-plugin/node_modules/nexus/dist/plugin").StringLike[] | undefined" kann dem Typ "import(".../node_modules/nexus/dist/plugin").StringLike | import(".../node_modules/nexus/dist/plugin").StringLike[] | undefined" nicht zugewiesen werden.
      Der Typ "PrintedGenTyping" kann dem Typ "StringLike | StringLike[] | undefined" nicht zugewiesen werden.
        Der Typ "import("...node_modules/nexus-federation-plugin/node_modules/nexus/dist/utils").PrintedGenTyping" kann dem Typ "import(".../node_modules/nexus/dist/utils").PrintedGenTyping" nicht zugewiesen werden.
          Die Eigenschaft "config" ist geschützt, Typ "PrintedGenTyping" ist aber keine von "PrintedGenTyping" abgeleitete Klasse.ts(2322)

(Sorry for the German)

It is basically complaining, that the NexusPlugin types are not compatible.

Activity

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

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