Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Ambiguous reference to a JS library: 3.5.17/d3.min.js #30

Open
acout opened this issue Oct 27, 2018 · 0 comments
Open

Ambiguous reference to a JS library: 3.5.17/d3.min.js #30

acout opened this issue Oct 27, 2018 · 0 comments

Comments

@acout
Copy link

acout commented Oct 27, 2018

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant