sherpal/LaminarSAPUI5Bindings

Non Existent Slot?

Closed this issue · 4 comments

Hey I'm trying this for the first time. I'm getting an error though when trying to run vite.

fastLinkJS
[info] Fast optimizing /home/sdrafahl/GardenShareV2/web/target/scala-3.3.0/gardenshare-web-fastopt
[error] Referring to non-existent method be.doeraene.webcomponents.ui5.internal.Slot.$colon$eq(com.raquo.laminar.nodes.ReactiveHtmlElement)com.raquo.laminar.inserters.Inserter
[error]   dispatched from be.doeraene.webcomponents.ui5.internal.Slot.$colon$eq(com.raquo.laminar.nodes.ReactiveHtmlElement)com.raquo.laminar.inserters.Inserter

I get this with Input and FlexibleColumnLayout. I figure I must have messed up the configuration. In my package json

  "dependencies": {
      "aria-modal": "^2.6.10",
      "@ui5/webcomponents": "1.17.1",
      "@ui5/webcomponents-fiori": "1.17.1",
      "@ui5/webcomponents-icons": "1.17.1"
  }

My sbt Dependencies

    libraryDependencies ++= Seq(
      "be.doeraene" %%% "web-components-ui5" % "1.17.1",
      "org.scala-js" %%% "scalajs-dom" % "2.4.0",
      "com.raquo" %%% "laminar" % "17.0.0-M2",
      "org.typelevel" %%% "cats-effect" % "3.5.2",
      "com.raquo" %%% "waypoint" % "8.0.0-M1",
      "com.raquo" %%% "airstream" % "17.0.0-M2"
    )

It generates if I don't use the slots but as soon as I try and set a slot like in the Readme example with Input I get an error like above. Any idea how I set this up wrong?

Hum, could you try with laminar 16.0.0 instead? (and same for airstream and waypoint).

If that fixes the problem, then I have to cut a release to adapt.

Hum, could you try with laminar 16.0.0 instead? (and same for airstream and waypoint).

If that fixes the problem, then I have to cut a release to adapt.

Hey, Its working so far after downgrading. Thanks for the hint.

Thanks for reporting back! I will make a maintenance release soon then, so that you can jump back in on laminar 17 👍

I released version 1.21 of the library, with bindings for sap 1.21, which uses laminar 17.0.0-M2.
This will make this work if you like to try.