~reStartbut if I change the SharedMessages.itWorks content, and refresh the page, it doesn't show the update message unless I ctrl + c and re-run it.
SharedMessages.scala, I can see in the SBT output that it's calling fastoptjs (
Fast optimizing ...). However, I don't see the Scala.js message being updated in Chrome when I reload the page. I do see the change when I open a private window, so it's probably a caching issue.
Hi, it looks like you need to use triple %, so that scalatest and scalacheck can be used from Scala.js. You will also need to use Scala.js 0.6.x instead of Scala.js 1.x because scalatest & scalacheck are not compatible with Scala.js 1.x yet. So, update your build.sbt to have:
"org.scalatest" %%% "scalatest" % "3.0.5" % Test, "org.scalacheck" %%% "scalacheck" % "1.14.0" % Test
and update your
project/plugins.sbt to use:
addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.0.8-0.6") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
You should then be able to run your client's tests.
WebKeys.public in Assets := file("<folder-path>")in the server project
I'm trying to build a ScalaJS project with Scala 3. If I run my project with scala 2.13 it works fine, but if I change the version to 3.0.0-M3 it fails with
bad option: -P:scalajs:mapSourceURI:...
The issue persists even with the bare minimum configuration:
lazy val client = (project in file("client")) .settings(commonSettings) .settings( scalaVersion := "3.0.0-M3", scalaJSUseMainModuleInitializer := true ) .enablePlugins(ScalaJSPlugin, ScalaJSWeb)
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.1") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.3.1") addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.1.0")
Any clue how to resolve this issue?