You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types.d.ts file generation fails with following error:
> codegen
> gql-gen -o
✔ Parse Configuration
⚠ Generate outputs
❯ Generate to ../assets/scripts/lib/apartment-archive/__gen__/types.d.ts
✔ Load GraphQL schemas
✔ Load GraphQL documents
✖ Cannot use GraphQLScalarType "Boolean" from another module or realm.
Ensure that there is only one instance of "graphql"in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the functionfrom another could produce confusing and
spurious results.
✔ Generate to ../persisted-query-ids/client.json
✔ Generate to ../persisted-query-ids/server.json
The failure also seems to affect the generation of client.json and server.json files even the shell output says otherwise.
When using
codegen.yml
with setup for TypeScript as follows:The
types.d.ts
file generation fails with following error:The failure also seems to affect the generation of
client.json
andserver.json
files even the shell output says otherwise.When I remove this part:
the generator runs as expected.
The text was updated successfully, but these errors were encountered: