You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> > demo / run
[info] Fast optimizing /home/piquerez/47degrees/fetch-demo/target/scala-2.13/demo-fastopt
[error] Referring to non-existent class java.util.concurrent.locks.AbstractQueuedSynchronizer
...
Expectation
All library dependencies of the fetchJS project should be Scala.js dependencies:
> fetchJS / dependencyTree
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] com.47deg:fetch_sjs1_2.13:1.3.1+44-b82a1d66+20201112-1453-SNAPSHOT [S]
[info] +-org.scala-js:scalajs-library_2.13:1.3.0 [S]
[info] +-org.typelevel:cats-effect_sjs1_2.13:2.2.0 [S]
[info] +-org.scala-js:scalajs-library_2.13:1.1.1 (evicted by: 1.3.0)
[info] +-org.scala-js:scalajs-library_2.13:1.3.0 [S]
[info] +-org.typelevel:cats-core_sjs1_2.13:2.2.0 [S]
[info] +-org.scala-js:scalajs-library_2.13:1.1.1 (evicted by: 1.3.0)
[info] +-org.scala-js:scalajs-library_2.13:1.3.0 [S]
[info] +-org.typelevel:cats-kernel_sjs1_2.13:2.2.0 [S]
[info] +-org.scala-js:scalajs-library_2.13:1.1.1 (evicted by: 1.3.0)
[info] +-org.scala-js:scalajs-library_2.13:1.3.0 [S]
The text was updated successfully, but these errors were encountered:
Problem
The library dependencies of the
fetchJS
project are JVM artifacts:As we can see the
cats-effect_2.13
is a JVM artifact and not a Scala.js artifact.It should be
cats-effect_sjs1_2.13
instead.The
fetchJS
project can be compiled but it cannot be linked:fetchJS / test
are not executedmain
class using fetch can be executedFor instance,
fetchJS / test
does not run any test:Or if I create a Scala.js project depending on fetch, it cannot be linked:
Expectation
All library dependencies of the
fetchJS
project should be Scala.js dependencies:The text was updated successfully, but these errors were encountered: