Comments (4)
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.
@mathieuleclaire Replace Node with Modifier and everything will be fine.
from workbench-example-app.
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.
I moved everything to 0.4.0
from workbench-example-app.
Related Issues (20)
- Suggestion: Submiting todomvc example to the curation at http://todomvc.com/ HOT 1
- I tried to run your example, but it failed with a "Not a valid re-start" HOT 3
- todomvc compilation problem: This version (0.5.5) of Scala.js IR is not supported. HOT 4
- Switch to newer sbt version to avoid jdk8 issue HOT 4
- build problems HOT 1
- Unresolved dependency HOT 2
- Please upgrade samples to new Scala.RX version HOT 1
- build.sbt with multiple project format
- Bind to localhost/127.0.0.1:12345 failed HOT 2
- todomvc branch - java.io.IOException: This version (0.6.6) of Scala.js IR is not supported. HOT 1
- Fork an example of todomvc that doesn't use Scala.rx HOT 1
- Create fork of client-server app without autowire. HOT 1
- Remove `updateBrowsers` and `bootSnippet` HOT 2
- remove .idea files from git
- refreshBrowsers should work in jvm-js-shared example
- How to change the reference to fastopt.js to opt.js in production
- Demo not working HOT 1
- Akka-http demo doesn't compile
- Basic get started does not work HOT 2
- Basic get started does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workbench-example-app.