OlivierBlanvillain / monadic-html

Tiny DOM binding library for Scala.js
https://olivierblanvillain.github.io/monadic-html/examples/
MIT License
225 stars 24 forks source link

monadic-html fails if a dependency on scala-xml is introduced #111

Open esarbe opened 4 years ago

esarbe commented 4 years ago

Adding any library that has a dependency to scala-xml into a monadic-html project makes it break.

Seen with:

libraryDependencies += "org.julienrf" %%% "endpoints-xhr-client-circe" % "0.12.0"

Example

<fieldset id="authentication" class={cssClass} onkeyup={ ifEnter(set(submitLogin)) }>

will fail with

overloaded method constructor UnprefixedAttribute with alternatives:
[error]   (key: String,value: Option[Seq[scala.xml.Node]],next: scala.xml.MetaData)scala.xml.UnprefixedAttribute <and>
[error]   (key: String,value: String,next: scala.xml.MetaData)scala.xml.UnprefixedAttribute <and>
[error]   (key: String,value: Seq[scala.xml.Node],next1: scala.xml.MetaData)scala.xml.UnprefixedAttribute
[error]  cannot be applied to (String, scala.scalajs.js.Dynamic => Unit, scala.xml.MetaData)
[error]     <fieldset id="authentication" class={cssClass} onkeyup={ ifEnter(set(submitLogin)) }>

instead of compiling.