scala-js-d3
scala-js-d3 copied to clipboard
Ambiguous reference to a JS library: 3.5.17/d3.min.js
trafficstars
Hello! I am trying to use the scala JS D3 façade within a project, and i am facing an issue, apparently coming from the scala-js-d3:compile build phase :
Ambiguous reference to a JS library: 3.5.17/d3.min.js
[error] Possible paths found on the classpath:
[error] - META-INF/resources/webjars/d3/3.5.17/d3.min.js
[error] - META-INF/resources/webjars/d3js/3.5.17/d3.min.js
[error] originating from: scala-js-d3:compile
My build.sbt part associated with scala js dependencies is given in the following :
enablePlugins(ScalaJSPlugin)
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.6"
scalaJSUseMainModuleInitializer := true
libraryDependencies += "org.singlespaced" %%% "scalajs-d3" % "0.3.4"
Should the façade build.sbt file contains the following way to load d3js, to avoid ambiguity ?
jsDependencies += "org.webjars" % "d3js" % "3.5.17" / "d3js/3.5.17/d3.min.js"
instead of
jsDependencies += "org.webjars" % "d3js" % "3.5.17" / "3.5.17/d3.min.js"
Thanks in advance!