alfonsogarciacaro / Feliz.Snabbdom

Write Fable apps using Feliz and Snabbdom
MIT License
13 stars 0 forks source link

Getting an error about a signature mismatch when trying out this package #1

Open neochrome opened 2 years ago

neochrome commented 2 years ago

I'm running into the following error while trying to use Feliz & Snabbdom together with Elmish instead of the React bindings. Could there be anything obvious that I'm doing wrong?

client/fable_modules/Feliz.Snabbdom.1.0.0-beta-004/Feliz.Snabbdom.fs(113,23): (113,31) error FSHARP: The object constructor 'HtmlEngine`1' has no argument or settable return property 'makeNode'. The required signature is new : mk:(string -> seq<'Node> -> 'Node) * ofStr:(string -> 'Node) * empty:(unit -> 'Node) -> HtmlEngine<'Node>. (code 495)
client/fable_modules/Feliz.Snabbdom.1.0.0-beta-004/Feliz.Snabbdom.fs(117,21): (117,29) error FSHARP: The object constructor 'SvgEngine`1' has no argument or settable return property 'makeNode'. The required signature is new : mk:(string -> seq<'Node> -> 'Node) * ofStr:(string -> 'Node) * empty:(unit -> 'Node) -> SvgEngine<'Node>. (code 495)
client/fable_modules/Feliz.Snabbdom.1.0.0-beta-004/Feliz.Snabbdom.fs(121,23): (121,31) error FSHARP: The object constructor 'AttrEngine`1' has no argument or settable return property 'makeAttr'. The required signature is new : mk:(string -> string -> 'Node) * mkBool:(string -> bool -> 'Node) -> AttrEngine<'Node>. (code 495)
client/fable_modules/Elmish.Snabbdom.1.0.0-beta-005/Elmish.Snabbdom.fs(26,10): (26,16) error FSHARP: The type 'Object' does not define the field, constructor or member 'custom'. (code 39)
neochrome commented 2 years ago

It seems pinning the Feliz.Engine to version 1.0.0-beta-003 works. I guess the beta-004 version changes the API slightly and the Feliz.Snabbdom isn't updated yet :)

reinux commented 1 year ago

I'm having the same issue too.

Is Feliz.Snabbdom still being worked on? It'd be really cool not to need React.