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 ]

GitHub | mandar-k | 3 months ago
  1. 0

    providedJS fails to load specific file. with name "bn.js"

    GitHub | 3 months ago | mandar-k
    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 ]

    Root Cause Analysis

    1. 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()
    2. org.scalajs.core
      DependencyResolver$.resolveDependencies
      1. org.scalajs.core.tools.jsdep.DependencyResolver$.resolveAllResourceNames(DependencyResolver.scala:84)
      2. org.scalajs.core.tools.jsdep.DependencyResolver$.resolveDependencies(DependencyResolver.scala:25)
      2 frames
    3. org.scalajs.sbtplugin
      ScalaJSPluginInternal$$anonfun$42.apply
      1. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$42.apply(ScalaJSPluginInternal.scala:545)
      2. org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$42.apply(ScalaJSPluginInternal.scala:513)
      2 frames
    4. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame
    5. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      1 frame
    6. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:63)
      1 frame
    7. SBT
      ErrorHandling$.wideConvert
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
      3 frames