SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
703 stars 108 forks source link

acceptJson throws MissingMethodException #380

Closed et1975 closed 2 months ago

et1975 commented 2 months ago

On .NET8 and having upgraded Saturn to 0.16.1 and Giraffe to 6.3.0 I get:

System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task1<Microsoft.FSharp.Core.FSharpOption1> Giraffe.Core.mustAccept(Microsoft.FSharp.Collections.FSharpList1<System.String>, Microsoft.FSharp.Core.FSharpFunc2<Microsoft.AspNetCore.Http.HttpContext,System.Threading.Tasks.Task1<Microsoft.FSharp.Core.FSharpOption1>>, Microsoft.AspNetCore.Http.HttpContext)'. at Saturn.PipelineHelpers.acceptJson@156.Invoke(FSharpFunc`2 next, HttpContext ctx)

Not sure if Giraffe introduced a breaking change, maybe new Saturn build against the latest Giraffe is needed.