'interceptors' compiler error when trying to use request middleware? (and analyzer errors when added) #8812
              
                Unanswered
              
          
                  
                    
                      bobby-driggs
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the latest 15.1.11 HotChocolate packages (& .NET 9 SDK)
In fact - i was able to reproduce this error using the base hotchocolate graphql server template in setup.
If you try to utilize:
Where
SomeMiddlewarecould be anything basic like:I get the following compiler error:
So originally i do that, but after doing so, I started getting intermittent build errors related to analyzer files being broken, and the last straw i had, was when trying to generate an EF Core bundle (via cli), it complaining with the following error:
CS2001:...HotChocolate.Execution.Generatedcould not be foundand a secondary error with a leading;In addition a bunch of analyzer errors like:CS1504: "... Files\dotnet\sdk\... /analyzer:C:\Program" could not be openedAll of these extra problems go away if I dont use
UseRequestand I remove the Interceptor namespace.Ive noticed most of the examples are based on .NET 6 -> 8, and none seem to have this magical line about interceptors. even the ones that are using
UseRequest. So either something is borked internally, or my machine is somehow non-standard?Has anyone seen this? Its extremely frustrating, and hitting the build issue with EF Core is a bit of a last straw...
Beta Was this translation helpful? Give feedback.
All reactions