Giter Site home page Giter Site logo

Comments (4)

mathieuleclaire avatar mathieuleclaire commented on July 22, 2024

More precisely, with scalatags 0.3.8, the following errors occur:

[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:23: not found: type Node
[error]   implicit def RxStr[T](r: Rx[T])(implicit f: T => Node): Node = {
[error]                                                           ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:23: not found: type Node
[error]   implicit def RxStr[T](r: Rx[T])(implicit f: T => Node): Node = {
[error]                                                    ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:33: not found: type Node
[error]   implicit def rxMod[T <: dom.HTMLElement](r: Rx[HtmlTag]): Node = {
[error]                                                             ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:24: type mismatch;
[error]  found   : T
[error]  required: scalatags.JsDom.Modifier
[error]     (which expands to)  scalatags.generic.Modifier[org.scalajs.dom.Element]
[error]  Note: implicit method RxStyleValue is not applicable here because it comes after the application point and it lacks an explicit result type
[error]     rxMod(Rx(span(r())))
[error]                    ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:46: reference to AttrValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]   implicit def RxAttrValue[T: AttrValue] = new AttrValue[Rx[T]]{
[error]                                                ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:48: reference to AttrValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]       Obs(r){ implicitly[AttrValue[T]].apply(t, a, r())}
[error]                          ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:46: reference to AttrValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]   implicit def RxAttrValue[T: AttrValue] = new AttrValue[Rx[T]]{
[error]                               ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:51: reference to StyleValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]   implicit def RxStyleValue[T: StyleValue] = new StyleValue[Rx[T]]{
[error]                                                  ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:53: reference to StyleValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]       Obs(r){ implicitly[StyleValue[T]].apply(t, s, r())}
[error]                          ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/Framework.scala:51: reference to StyleValue is ambiguous;
[error] it is imported twice in the same scope by
[error] import all._
[error] and import scalatags.JsDom._
[error]   implicit def RxStyleValue[T: StyleValue] = new StyleValue[Rx[T]]{
[error]                                ^
[error] /home/mathieu/work/labo/scala/workbench-example-app/src/main/scala/example/ScalaJSExample.scala:78: could not find implicit value for parameter ev: scalatags.generic.AttrValue[Builder,rx.core.Rx[String]]
[error]                   `class` := Rx{
[error]                           ^
[error] 11 errors found

from workbench-example-app.

hussachai avatar hussachai commented on July 22, 2024

@mathieuleclaire Replace Node with Modifier and everything will be fine.

from workbench-example-app.

mathieuleclaire avatar mathieuleclaire commented on July 22, 2024

Thanks. It fixes the errors concerning the Nodes.
Note that we also need to invoke explicitely scala scalatags.JsDom.AttrValue and scala scalatags.JsDom.StyleValue to avoid the ambigous reference to them.

from workbench-example-app.

lihaoyi avatar lihaoyi commented on July 22, 2024

I moved everything to 0.4.0

from workbench-example-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.