我正在尝试遵循此处的快速入门指南https://lihaoyi.github.io/upickle-pprint/upickle/
已设置依赖项
"com.lihaoyi" %%% "upickle" % "0.3.6",
但基础似乎失败了:
scala> import upickle.default._
import upickle.default._
scala> write(1)
java.lang.ClassCastException: java.lang.Double cannot be cast to scala.scalajs.js.Any
at upickle.json.package$.write(package.scala:38)
at upickle.Types$class.write(Types.scala:125)
at upickle.default$.write(Api.scala:25)
... 35 elided