[英]Soda Date Time with scalajs: type DateTime is not a member of package org.joda
I'm trying to use soda date time in my Play! scalajs
我正在尝试在Play! scalajs
使用苏打日期时间Play! scalajs
Play! scalajs
application. Play! scalajs
应用程序。
Soda date time
is imported (without any error) on the client side with 在客户端导入(没有任何错误)
"org.mdedetrich" %%% "soda-time" % "0.0.1-SNAPSHOT"
But when I try to use it, simply like this: 但是当我尝试使用它时,就像这样:
val dateTime = new org.joda.DateTime(new js.Date())
I get the following error: 我收到以下错误:
type DateTime is not a member of package org.joda
I don't see what I'm missing... 我看不到我想念的东西...
I was checking the source code of soda-time in GitHub and I think DateTime is under org.soda.time instead of org.soda 我正在检查GitHub中的soda-time的源代码,并且我认为DateTime在org.soda.time下,而不是org.soda下
I haven't used soda-time before, but I'm using scalajs-jsjoda for my cross js and JVM projects. 我以前没有用过苏打时间,但是我在跨js和JVM项目中使用了scalajs-jsjoda 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.