scala.js Questions
2
Solved
I have some scala.js unit tests written in utest. They all run just fine from the sbt build, however I would like to be able to step through the unit tests in a debugger. Using my favorite IDE (int...
Pate asked 10/6, 2015 at 3:37
1
Solved
I'm in library dependency hell right now with the following error:
[error] (server / update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]...
1
I tried posting this question to Scala Users but no reply yet. How does one go about working with the new experimental Scala 3 with Scala.JS? I can’t find cogent instructions.
Shockingly there’s no...
2
I am using Leaflet with scalajs-leaflet facade on Binding.scala, and the map initializes/appears incorrectly.
In order to reproduce the issue, i have prepared a lihaoyi/workbench page similar to ...
Searle asked 21/12, 2018 at 5:45
2
I want to point to a different location and file name and deviate from the Vite standard.
Let's say my js file is in out/frontend/../../out.js. I got it working when I rename it to main.js and copy...
Belgian asked 1/7, 2021 at 20:19
2
Solved
Does scala.js work with scala ZIO?
I'm looking to use scala ZIO with scala.js I only know how to use scala ZIO in normal apps does anyone know how to use it with scala.js?
3
Solved
A JSON string:
{
"name": "Mike",
"age": 111
}
A case class:
case class User(name:String, age:Int)
If I use scala, there are many libraries can let me convert the JSON to the case class and ...
1
I'd like to use Scala.js to write libraries to then use in web applications written in TypeScript. This requires TypeScript type bindings (*.d.ts file) to be generated by Scala.js for my library. D...
Lykins asked 6/11, 2019 at 22:54
2
Solved
Here is an example from the Hands-on Scala.js ebook:
package webpage
import org.scalajs.dom.ext.Ajax
import scala.scalajs.js
import scala.scalajs.js.annotation.JSExport
import scalatags.JsDom.al...
2
When using Scala.js 0.6.20 (addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.20") in project/plugins.sbt), the following error happens when trying to sbt import the project using sbt 0.13.15:
ja...
1
Solved
After migrating to ScalaJS 0.6.23 from 0.6.21:
(addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23"))
My sbt-build throws the following exception:
...
[error] /Users/mpa/dev/Github/pme123/sca...
2
Please consider a Scala.js class that contains a large JavaScript typed array called xArr.
A process called p(xArr) consumes xArr as input but takes a long time to complete. In order to avoid scri...
Jenellejenesia asked 21/4, 2018 at 2:33
2
Solved
I am using uPickle/ScalaJS to deserialize a js.Dynamic object into a case class using this code fragment:
read[myClass](JSON.stringify(dynObj))
where myClass is the case class and dynObj is the ...
1
So by reading the reasons why facebook choose OCaml to create Reason, I couldn't stop noting that Scala met all the requirements too.
I'm not biased whatsoever, I know Scala, but I'm not a die hard...
1
Solved
While I love Scala the language, and Scala.js the project, I'm a little put-off by the size of the eventual JS bundle, even in fullOptJS mode.
My immediate need is to create a small-ish library f...
Abeu asked 24/1, 2018 at 3:17
1
Say I have two sub-projects, lib1 and lib2 with build.sbts that look like this:
lazy val libX = crossProject.in(file(".")).settings(
... // a bunch of settings
).jvmSettings(
... // a bunch of s...
1
Solved
Is it possible to sleep inside a Future in Scala.js ?
Something like:
Future {
Thread.sleep(1000)
println("ready")
}
If I try this then I get an exception saying that sleep method does not ex...
1
Solved
I'm frustrated by unintelligible stacktraces when my Scala.js code throws an exception. I thought I had a solution using a Javascript library (see Getting a scala stacktrace) but it breaks too ofte...
Forme asked 7/9, 2017 at 18:34
1
Solved
Suppose I have this definition in Scala.js for the return type of a function of some library I'm using:
@native
trait Link extends Object {
val href: String = native
val title: String = native
}...
Billiton asked 19/7, 2017 at 11:46
1
I would like to develop some of the webcomponents in a Polymer 2.0 project with scala.js. While there is a wonderful demo-project on github demonstrating how it works with Polymer 1.0. I cannot get...
Lubra asked 15/5, 2017 at 9:28
1
Solved
When adding Scala.JS dependencies in SBT you use %%%. E.g.
libraryDependencies += "be.doeraene" %%% "scalajs-jquery" % "0.9.0"
How is this done in the Gradle Scala plugin?
Venule asked 20/9, 2016 at 12:49
2
Solved
When my scala-js code throws an error, I'd like to send a sensible stacktrace back to my server to put in the logs. By "sensible stacktrace" I mean something that gives the Scala methods, filenames...
Zoroastrian asked 10/1, 2017 at 14:50
1
Solved
Please consider a scala.js application which runs in the browser and consists of a main program and a web worker.
The main thread delegates long running operations to the web worker by passing mes...
Tepic asked 3/6, 2017 at 20:56
1
In a Scala.js unit test, what is the easiest solution to load test data from a file residing in test/resources?
Troy asked 29/11, 2016 at 13:5
0
How does Binding.scala compare to the concept described here?
Apart from the design descriptions one might compare their implementations of TodoMVC:
Binding.scala
Scala.Rx + ScalaTags
Edit: By...
Indira asked 7/4, 2017 at 16:25
1 Next >
© 2022 - 2024 — McMap. All rights reserved.