Nhowka / Elmish.Bridge

Create client-server Fable-Elmish apps keeping a single mindset
MIT License
139 stars 17 forks source link

ValLinkagePartialKe(set_onclose) error building without Fable #37

Open pw242 opened 2 years ago

pw242 commented 2 years ago

Building the client to .NET (i.e. not with Fable) I get an error:

The module/namespace 'Types' from compilation unit 'Browser.WebSocket' did not contain the val 'ValLinkagePartialKe(set_onclose)'

|> Program.withBridgeConfig ( Bridge.endpoint BridgeShared.endpoint |> Bridge.withMapping (ProjMgmt.Index.ServerMsg >> Users.Secure.InnerMsg) )

I can workaround with an #if FABLE_COMPILER guard. I like to compile without Fable to get intellisense working in Visual Studio. Once I do the proper build it works fine.

Nhowka commented 2 years ago

It's a little experimental, but can you test the package Elmish.Bridge.DotNetClient? The Fable one only works in the browser, but this one should work for desktop apps.