scala.js - java.lang.NoSuchMethodError: sbt.package$.Zero()Lsbt/Global$; -


when using scala.js 0.6.20 (addsbtplugin("org.scala-js" % "sbt-scalajs" % "0.6.20") in project/plugins.sbt), following error happens when trying sbt import project using sbt 0.13.15:

java.lang.nosuchmethoderror: sbt.package$.zero()lsbt/global$;         @ org.scalajs.sbtplugin.scalajsplugininternal$.org$scalajs$sbtplugin$scalajsplugininternal$$scalajsstagesettings(scalajsplugininternal.scala:254)         @ org.scalajs.sbtplugin.scalajsplugininternal$$anonfun$22.apply(scalajsplugininternal.scala:446)         @ org.scalajs.sbtplugin.scalajsplugininternal$$anonfun$22.apply(scalajsplugininternal.scala:446)         @ scala.function2$$anonfun$tupled$1.apply(function2.scala:54)         @ scala.function2$$anonfun$tupled$1.apply(function2.scala:53) 

similar problem: https://gitter.im/scala-js/scala-js?at=59b53890b59d55b823db1dcd

as release notes mention, scala.js 0.6.20 requires sbt 0.13.16 or above. achieve this, project/build.properties file should modified set:

sbt.version=0.13.16 

(or compatible)


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -