Error in generated code "Argument 3: cannot convert from 'StrawberryShake.IOperationStore' to 'System.Func<StrawberryShake.IResultPatcher<System.Text.Json.JsonDocument>>'"
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Product
Strawberry Shake
Describe the bug
Updating from 12.15.2 to 13.0.0-preview.103 resulted in this compiler error(in addition to the one reported in #5668)
This compile error is being reported against all the DI registrations of
IOperationExecutor<IXXXResult>
If I set noStore: true, then I get: There is no argument given that corresponds to the required parameter ‘resultPatcher’ of 'StorelessOperationExecutor…
Steps to reproduce
- Update StrawberryShake.Transport.Http and StrawberryShake.Transport.WebSockets from version 12 to version 13
- Compile
Relevant log output
No response
Additional Context?
I did not update the StrawberryShake.CodeGeneration.CSharp.Analyzers project, as NuGet wasn’t showing a preview version for that.
Version
13.0.0-preview.103
Issue Analytics
- State:
- Created 8 months ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Error code from GraphQL is not correct in StrawberryShake
Describe the bug. I expected my StrawberryShake client to return error codes from the GraphQL response, but result.Errors[0].Code is null.
Read more >Strawberry Shake Code Generation cannot resolve type ...
Rename in the local schema file all Any to AnyType or String afterwards the build is successfull and generate the code.
Read more >"Cannot convert error" in generated StrawberryShake code ...
Describe the bug. In a recent project encountered "cannot convert from" error in the StrawberryShake generated code. I simplified the data ...
Read more >Incorrectly reported errors when using Strawberry Shake library
The project builds and runs fine both from the command line (with dotnet build ) and in Rider, but Rider seems to detect...
Read more >Error CS1503: cannot convert from 'system. ...
I mean, look at the namespace the class sits in: System.ComponentModel. Does that sound like it has anything to do with Json?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bromix & @darren-clark There is no more analyzer package. You need to use one of the meta packages for Blazor, Maui or server. you can check it here: https://chillicream.com/blog/2023/02/08/new-in-hot-chocolate-13#strawberry-shake
@PascalSenn thanks for the hint. Now I only have to solve this one https://github.com/ChilliCream/graphql-platform/issues/5715 😄