Zaid-Ajaj / Fable.Remoting

Type-safe communication layer (RPC-style) for F# featuring Fable and .NET Apps
https://zaid-ajaj.github.io/Fable.Remoting/
MIT License
272 stars 54 forks source link

Safe Stack and .NET6 error messages #300

Closed ciphertools closed 2 years ago

ciphertools commented 2 years ago

I have to admit that I am really not sure if this is an issue with Fable.Remoting, but I am reporting this here just in case ...

I am trying to manually convert my Safe Stack app to run .NET6. When I run it, though, I get a series of error messages like this one:

../src/Client/output/.fable/Fable.Remoting.MsgPack.1.16.0/Write.fs(621,41): error FABLE: System.DateOnly.get_DayNumber is not supported by Fable - Inline call from .(784.65)

Some of the error messages refer to Read.fs, instead of Write.fs, and sometimes System.TimeOnly is mentioned. It is very possible that there is nothing wrong with Fable.Remoting and that these messages come from me trying things where I am a little out of my depth!

kerams commented 2 years ago

Hey, you must be using an old version of the Fable compiler. DateOnly support was added in 3.7.0 I think 3.6.0. Do dotnet tool update fable and you'll be good to go!

This is an issue with Remoting, but frankly I am not sure how to conditionally compile that code when using Fable versions older than 3.6.0.

ciphertools commented 2 years ago

Thank you! That worked - well, at least the error messages have now changed to something different!