-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
loader.loaderId is not a function #3246
Comments
This is an issue on those packages side not GraphQL Tools. We have released a major version with breaking changes including removal of |
Ok cool. I've managed to lock down prisma-loader: |
Hey @dylanwatsonsoftware. Have you figured out a workaround for this yet? My build just broke due to the same issue :( |
You didn't have any luck just locking down the version of prisma-loader? |
Nope. I've added |
You might also need to delete your package-lock.json and run |
That didn't help but I will keep digging. Thanks for your help! |
Quick update. I managed to sort this out by pinning
Then, I deleted |
More details on this here: dotansimha/graphql-code-generator#6374 (comment) |
@zeigernz I am working on updating graphql-codegen to latest graphql-tools right now 🙂 |
@zeigernz, thanks for this. This was helpful - I ended up making the changes to the |
Describe the bug
The loaderId method was removed from PrismaLoader, however
graphql-config
uses this method to compare loaders.I've tracked down the issue to this commit:
9c26b84
To Reproduce
Steps to reproduce the behavior:
Run graphql-codegen (with prisma loader)
Expected behavior
I expect it to generate my code but instead it dies with:
loader.loaderId is not a function
This is thrown by code in
graphql-config
that expects a loaderId for all loaders. See here: https://github.com/kamilkisiela/graphql-config/blob/89767c8b3dc56a930f42e5e96bcbc43bd5644f41/src/loaders.ts#L33I can provide a minimal package.json if required but these 2 deps are pulled in by @graphql-codegen/cli@1.21.7 I believe.
The text was updated successfully, but these errors were encountered: