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

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

Open
platzhersh opened this issue Sep 13, 2022 · 0 comments

Comments

@platzhersh
Copy link

platzhersh commented Sep 13, 2022

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.

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