SBT:无法解决日期范围选择器的依赖关系

时间:2017-03-04 03:03:34

标签: reactjs playframework sbt daterangepicker webjars

我正在尝试在Play 2.5 / Scala应用程序中使用这个基于React的日期范围选择器:

https://github.com/onefinestay/react-daterange-picker

但是,无法找到其中一个依赖项:

[warn]  :: org.webjars.npm#calendar;0.2.1: not found
[warn]  :: org.webjars.npm#calendar;[0.1.0,0.2): not found
...
[error] (common/*:update) sbt.ResolveException: unresolved dependency: org.webjars.npm#calendar;0.2.1: not found
[error] unresolved dependency: org.webjars.npm#calendar;[0.1.0,0.2): not found

没有像#34;日历"在webjars.org存储库中。名称有变化吗?知道我怎么能成功建立这个日期选择器吗?

1 个答案:

答案 0 :(得分:1)

我找到了react-datepickerreact-bootstrap-daterangepicker

libraryDependencies += "org.webjars.npm" % "react-datepicker" % "0.12.0"

libraryDependencies += "org.webjars.npm" % "react-bootstrap-daterangepicker" % "1.0.4"