Open jkone27 opened 8 months ago
For Fable to work:
(1) is quite easy to fix but (2) is significant work.
The approach would be to isolate the platform code that is .NET specific and provide the same API using Node.js built-ins.
To get an idea of how much code this is, see the error message from running dotnet fable ./src/Suave/Suave.fsproj
.
e.g.
./src/Suave/WebSocket.fs(225,29): (225,41) error FABLE: System.Memory`1..ctor (static) is not supported by Fable
would be grate if suave could be the cross language web platform we all dream of, i tried to compile it with fable on a single fsx script (dotnet fable), got this error, seems the fish custom operator is not defined, maybe there is work arounds..
here the full code, to be compiled with
dotnet fable
(defaults to javascript)