Skip to content

Subscriptions tutorial: "The field onSessionScheduled does not exist on the type Subscription" #6747

@jacksorjacksor

Description

@jacksorjacksor

Is there an existing issue for this?

  • I have searched the existing issues

Product

Strawberry Shake

Describe the bug

Hi!

Running through the "Subscriptions" tutorial and failing at step 3! The build step generates two errors:

The field onSessionScheduleddoes not exist on the typeSubscription``

For clarity, here's the type Subscription as found in schema.graphql:

type Subscription {
  onPriceChange(symbols: [String!]): AssetPrice!
  onNotification: NotificationUpdate!
}

Specs:

Blazor WASM, .NET 8.0
StrawberryShake.Blazor v13.7.0
StrawberryShake.Transport.WebSockets v13.7.0

Steps to reproduce

  1. Complete the "Get started with Strawberry Shake and Blazor" tutorial (which I've made my own version of here)

  2. Work through the Subscriptions tutorial steps 1 and 2, using Nuget package manager to download StrawberryShake.Transport.WebSockets

  3. Run dotnet build

  4. Get error log (if you're me, at least!)

Relevant log output

StrawberryShake  dotnet build
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
  Restored D:\Coding\StrawberryShake\Demo\Demo.csproj (in 333 ms).
  Generate C# Clients started.
  Generate CryptoClient started.
  Generate CryptoClient completed in 271 ms
EXEC(2,3): error SS0002: The field `onSessionScheduled` does not exist on the type `Subscription`. [D:\Coding\StrawberryShake\Demo\Demo.csproj]
C:\Users\jacks\.nuget\packages\strawberryshake.blazor\13.7.0\build\StrawberryShake.Blazor.targets(79,5): error MSB3073: The command "dotnet "C:\Users\jacks\.nuget\packages\strawb
erryshake.blazor\13.7.0\build\..\tools\net8\dotnet-graphql.dll" generate "D:\Coding\StrawberryShake\Demo" -o "D:\Coding\StrawberryShake\Demo\obj\Debug\net8.0\berry" -n Demo -a md
5 -r" exited with code 1. [D:\Coding\StrawberryShake\Demo\Demo.csproj]

Build FAILED.

EXEC(2,3): error SS0002: The field `onSessionScheduled` does not exist on the type `Subscription`. [D:\Coding\StrawberryShake\Demo\Demo.csproj]
C:\Users\jacks\.nuget\packages\strawberryshake.blazor\13.7.0\build\StrawberryShake.Blazor.targets(79,5): error MSB3073: The command "dotnet "C:\Users\jacks\.nuget\packages\strawb
erryshake.blazor\13.7.0\build\..\tools\net8\dotnet-graphql.dll" generate "D:\Coding\StrawberryShake\Demo" -o "D:\Coding\StrawberryShake\Demo\obj\Debug\net8.0\berry" -n Demo -a md
5 -r" exited with code 1. [D:\Coding\StrawberryShake\Demo\Demo.csproj]
    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.55

Additional Context?

No response

Version

13.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions