-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
Problem generating client when using NodaTime types in the schema. #8004
Comments
@david-driscoll Can you please try 15.1.0-p.3? |
@david-driscoll any feedback? |
I think i have the same issue in my api, here's my partial stacktrace:
i've tried to use version: Like @david-driscoll, if I remove my Here's a small example on how i locally reproduce the issue:
i'm using the |
+1 to this. We do not use NodaTime but still have the same issue |
@josteinkjerstad Do you have your own type named |
@glen-84 No we dont It seems like this happened after the scalar in schema.graphql changed from Our frontend handles this just fine but its our test projects in c# that fails. If I manually remove the scalar definition for Heres a screenshot of what happened to our schema.graphql file in terms of scalars after updating to V15 |
The error should be:
(fixed in #8058) To fix this, you need to reference I'm not able to reproduce your issue, and it's not the same as the original issue here, which relates to Strawberry Shake. Please open a new issue. I'll close this issue now, as I believe that it should be resolved in the latest preview releases. |
Product
Strawberry Shake
Version
15.0.3
Link to minimal reproduction
https://github.com/david-driscoll/gql-duplicatekey-poc
Steps to reproduce
I've created a reproduction repository, with a simple project and a simplified.
A simple clone and
dotnet build
will give you an error like this:What is expected?
Build should succeed.
What is actually happening?
Build fails.
Relevant log output
Additional context
Now curiously if I comment out all the usages of
LocalDate
,LocalTime
andLocalDateTime
the project builds.You can see the diff here for the successful build: david-driscoll/gql-duplicatekey-poc@a3ef895
The working branch is: https://github.com/david-driscoll/gql-duplicatekey-poc/tree/working
The failing branch is: https://github.com/david-driscoll/gql-duplicatekey-poc/tree/master
I tried debugging to no avail, I don't know whats going on, lol. Input or output it doesn't appear to matter.
I was able to narrow down the issue appears to be
TypeRegistrar.GetUnhandled()
returning the duplicate types from the dependencies. How or why, I could not tell you.The text was updated successfully, but these errors were encountered: