Closed djx314 closed 1 year ago
Would it work if you delete the return type like adf7ec7d4e97c9d77c44ce2db933edd7310db398
emmm, it seems that it makes bindingTr
as a BindingSeq
and not a Binding[Node]
sbt:desu-video>
sbt:desu-video>
sbt:desu-video> frontendJS/clean
[success] Total time: 0 s, completed 2023-3-9 17:52:13
sbt:desu-video>
sbt:desu-video>
sbt:desu-video> prun
[info] scalafmt: Formatting 2 Scala sources (E:\programming\workspace\desu-video\frontend\js)...
[info] scalafmt: Formatting 2 Scala sources (E:\programming\workspace\desu-video\frontend\js)...
[info] compiling 2 Scala sources to E:\programming\workspace\desu-video\frontend\js\target\scala-3.2.2\classes ...
[error] -- [E008] Not Found Error: E:\programming\workspace\desu-video\frontend\js\src\main\scala\AA.scala:67:27
[error] 67 | bindingTr(contact).bind
[error] | ^^^^^^^^^^^^^^^^^^^^^^^
[error] |value bind is not a member of com.thoughtworks.binding.Binding.BindingSeq[org.scalajs.dom.Node].
[error] |An extension method was tried, but could not be fully constructed:
[error] |
[error] | com.thoughtworks.dsl.Dsl.shift[com.thoughtworks.binding.Binding.Bind[Any], Any](
[error] | com.thoughtworks.binding.Binding.Bind[Any](DummyImplicit.dummyImplicit).apply(
[error] | AA.bindingTr(contact)
[error] | )
[error] | )
[error] -- Error: E:\programming\workspace\desu-video\frontend\js\src\main\scala\AA.scala:64:4
[error] 64 | html"""<table>
[error] | ^
[error] |Require a HTML DOM expression, got interpolation expression com.thoughtworks.binding.Binding.BindingSeq[scala.Any]
[error] |method watchableBindableSeq in trait LowPriorityBindableSeq2 does not match type com.thoughtworks.binding.bindable.BindableSeq.Lt[Value, org.scalajs.dom.Node]
[error] 65 | <tbody>
[error] 66 | ${for (contact <- contacts) yield {
[error] 67 | bindingTr(contact).bind
[error] 68 | }}
[error] 69 | </tbody>
[error] 70 | </table>"""
[error] |---------------------------------------------------------------------------
[error] |Inline stack trace
[error] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[error] |This location contains code that was inlined from Reset.scala:113
[error] ---------------------------------------------------------------------------
[error] two errors found
[info] scalafmt: Formatting 1 Scala sources (E:\programming\workspace\desu-video\backend\desu-video-common)...
[error] (frontendJS / Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed 2023-3-9 17:52:19
sbt:desu-video>
How about 21c86d8a245e12d7a3fe3bae69012acc039457b0?
The same error. And change to this, it works, but the HTML seems not right.
It seems that all the
Text Snippet
to HTML, so I think the type BindingSeq[Node]
means Binding[Seq[TextNode]]
.
Eager fix the problem in sbt-depts
and now can reproduct the problem by run
sbt>frontendJS/compile
The same error. And change to this, it works, but the HTML seems not right.
It seems that all the is miss and just add some
Text Snippet
to HTML, so I think the typeBindingSeq[Node]
meansBinding[Seq[TextNode]]
.
Error typo.
It seems that all the is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].
It seems that all the HTML Tags is miss and just add some Text Snippet to HTML, so I think the type BindingSeq[Node] means Binding[Seq[TextNode]].
Code Link
Dependencies:
Plugins:
Scala Version: 3.2.2
Message: