question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in generated code "Argument 3: cannot convert from 'StrawberryShake.IOperationStore' to 'System.Func<StrawberryShake.IResultPatcher<System.Text.Json.JsonDocument>>'"

See original GitHub issue

Is 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

  1. Update StrawberryShake.Transport.Http and StrawberryShake.Transport.WebSockets from version 12 to version 13
  2. 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:closed
  • Created 8 months ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
PascalSenncommented, Feb 17, 2023

@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

0reactions
bromixcommented, Feb 17, 2023

@PascalSenn thanks for the hint. Now I only have to solve this one https://github.com/ChilliCream/graphql-platform/issues/5715 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found