play.sbt.PlayExceptions$UnexpectedException

Unexpected exception[JSLibResolveException: Some references to JS libraries could not be resolved: - Missing JS library: bn.js originating from: client:compile ]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JSLibResolveException: Some references to JS libraries could not be resolved: - Missing JS library: bn.js originating from: client:compile ] at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:51) at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44) at scala.Option.map(Option.scala:145) at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44) at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40) at play.sbt.run.PlayReload$$anonfun$compile$2$$anonfun$apply$3.apply(PlayReload.scala:20) at play.sbt.run.PlayReload$$anonfun$compile$2$$anonfun$apply$3.apply(PlayReload.scala:20) at scala.util.Either$LeftProjection.map(Either.scala:377) at play.sbt.run.PlayReload$$anonfun$compile$2.apply(PlayReload.scala:20) at play.sbt.run.PlayReload$$anonfun$compile$2.apply(PlayReload.scala:18) Caused by: org.scalajs.core.tools.jsdep.JSLibResolveException: Some references to JS libraries could not be resolved: - Missing JS library: bn.js originating from: client:compile at org.scalajs.core.tools.jsdep.DependencyResolver$.resolveAllResourceNames(DependencyResolver.scala:84) at org.scalajs.core.tools.jsdep.DependencyResolver$.resolveDependencies(DependencyResolver.scala:25) at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$42.apply(ScalaJSPluginInternal.scala:545) at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$42.apply(ScalaJSPluginInternal.scala:513) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.