scalablytyped / demos Goto Github PK
View Code? Open in Web Editor NEWDemos for ScalablyTyped
License: MIT License
Demos for ScalablyTyped
License: MIT License
I'm trying to use ScalablyTyped for the first time and was unable to use it with scala 1.0.0.
I'm doing anything wrong. Does anyone have an idea of how can I investigate the problem?
Any help would be appreciated. Thanks in advance!
I updated the file project/plugins.sbt
to:
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.16.0")
resolvers += Resolver.bintrayRepo("oyvindberg", "converter")
addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta4")
and when running any demo three/start
I get:
sbt:demos> three/start
[info] Updating NPM dependencies
[info] Using lockfile /home/fabio/workspace/Demos/three/yarn.lock
[info] yarn install v1.15.2
[info] [1/4] Resolving packages...
[info] [2/4] Fetching packages...
[info] info [email protected]: The platform "linux" is incompatible with this module.
[info] info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[info] [3/4] Linking dependencies...
[info] [4/4] Building fresh packages...
[info] Done in 4.04s.
[error] stack trace is suppressed; run last three / Compile / stImport for the full output
[error] (three / Compile / stImport) java.lang.NoSuchMethodError: 'java.lang.String org.scalajs.sbtplugin.ScalaJSCrossVersion$.currentBinaryVersion()'
[error] Total time: 5 s, completed Feb 16, 2020, 11:44:35 PM
sbt:demos> last three/Compile/stImport
[error] java.lang.NoSuchMethodError: 'java.lang.String org.scalajs.sbtplugin.ScalaJSCrossVersion$.currentBinaryVersion()'
[error] at org.scalablytyped.converter.plugin.ScalablyTypedConverterPlugin$.$anonfun$stScalaJsBundlerIntegration$6(ScalablyTypedConverterPlugin.scala:100)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:281)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19)
[error] at sbt.Execute.work(Execute.scala:290)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:281)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:834)
[error] (three / Compile / stImport) java.lang.NoSuchMethodError: 'java.lang.String org.scalajs.sbtplugin.ScalaJSCrossVersion$.currentBinaryVersion()'
I tried a dozen demo links and they all 404.
Hi, i just cloned the repo and started to do try to start any project, no one starts.
sbt:demos> google-maps/start
[info] Updating NPM dependencies
[info] Using lockfile /home/nojipiz/Downloads/temp/Demos/google-maps/yarn.lock
[info] yarn install v1.22.22
[info] [1/4] Resolving packages...
[info] compiling 1 Scala source to /home/nojipiz/Downloads/temp/Demos/google-maps/target/scala-3.3.0/classes ...
[info] [2/4] Fetching packages...
[info] [3/4] Linking dependencies...
[error] error while loading AccessFlag,
[error] class file /modules/java.base/java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException
[error] bad constant pool index: 0 at pos: 5189
[error] error while loading ElementType,
[error] class file /modules/java.base/java/lang/annotation/ElementType.class is broken, reading aborted with class java.lang.RuntimeException
[error] bad constant pool index: 0 at pos: 1220
[error] two errors found
[info] [4/4] Building fresh packages...
[info] Done in 6.71s.
Yarn Version: 1.22.22
Sbt version: 1.9.0
Java version: 21.
PD: I just changed the Scala version from 3.3.0 to -> 3.3.3 and it works, is this supposed to happen?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.