SBT:错误:未找到:值npmdependencenpmdependencesincompile++=Seq(…)
我尝试使用[ScalablyTyped][1]启动一个项目 启动sbt时,我遇到以下异常:SBT:错误:未找到:值npmdependencenpmdependencesincompile++=Seq(…),sbt,scala.js,scalably-typed,Sbt,Scala.js,Scalably Typed,我尝试使用[ScalablyTyped][1]启动一个项目 启动sbt时,我遇到以下异常: error: not found: value npmDependencies 编译中的npmDependencies++=Seqd3->5.5.0 这是我的plugin.sbt: 和我的Builod.sbt: enablePlugins(ScalaJSPlugin) name := "Scala.js Tutorial" scalaVersion := "2.12.6" resolvers +=
error: not found: value npmDependencies
编译中的npmDependencies++=Seqd3->5.5.0
这是我的plugin.sbt:
和我的Builod.sbt:
enablePlugins(ScalaJSPlugin)
name := "Scala.js Tutorial"
scalaVersion := "2.12.6"
resolvers += Resolver.bintrayRepo("oyvindberg", "ScalablyTyped")
libraryDependencies ++= Seq(ScalablyTyped.D.d3)
npmDependencies in Compile ++= Seq("d3" -> "5.5.0")
npmDependencies是由提供的密钥,因此您需要在项目/plugins.sbt中使用以下行:
和in build.sbt
enablePlugins(ScalaJSPlugin)
name := "Scala.js Tutorial"
scalaVersion := "2.12.6"
resolvers += Resolver.bintrayRepo("oyvindberg", "ScalablyTyped")
libraryDependencies ++= Seq(ScalablyTyped.D.d3)
npmDependencies in Compile ++= Seq("d3" -> "5.5.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.14.0")
enablePlugins(ScalaJSBundlerPlugin)