Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error occurred during conversion using gsap library #574

Open
cyz1901 opened this issue Oct 6, 2023 · 0 comments
Open

Compilation error occurred during conversion using gsap library #574

cyz1901 opened this issue Oct 6, 2023 · 0 comments

Comments

@cyz1901
Copy link

cyz1901 commented Oct 6, 2023

hello team i have a error when i try to transform gsap library...

[info] ZincCompiler.scala:234 msg.get() compiling 271 Scala sources to /Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/target/scala-3/classes ... [project => frontend, ms => 37720]
[error] ZincCompiler.scala:230 msg.get() [Error] /Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/src/main/scala/typings/gsap/gsap/SlowMoConfig.scala:10:6: error overriding method apply in trait Function1 of type (arg1: Double): Double;
[error]   method apply of type (linearRatio: Double): typings.gsap.gsap.EaseFunction has incompatible type [project => frontend, ms => 70215]
[error] ZincCompiler.scala:230 msg.get() one error found [project => frontend, ms => 70689]
[error] Phase3Compile.scala:152 err Compilation failed: -scalajs, -encoding, utf-8, -feature, -language:implicitConversions, -language:higherKinds, -language:existentials, -no-indent, -source:future, -bootclasspath, /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre/classes:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar, -classpath, /Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.3.1/scala3-compiler_3-3.3.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.3.1/scala3-interfaces-3.3.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.3.1/scala3-library_3-3.3.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.3.1/tasty-core_3-3.3.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.5.0-scala-1/scala-asm-9.5.0-scala-1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.3.5/compiler-interface-1.3.5.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.19.0/jline-reader-3.19.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.19.0/jline-terminal-3.19.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.19.0/jline-terminal-jna-3.19.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.3.0/util-interface-1.3.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.13.2/scalajs-library_2.13-1.13.2.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-javalib/1.13.2/scalajs-javalib-1.13.2.jar:/Users/my/.ivy2/local/org.scalablytyped/std_sjs1_3/5.2-388d15/jars/std_sjs1_3.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/olvind/scalablytyped-runtime_sjs1_3/2.4.2/scalablytyped-runtime_sjs1_3-2.4.2.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_sjs1_3/3.1.3/scala3-library_sjs1_3-3.1.3.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.7.1/scalajs-library_2.13-1.7.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_sjs1_3/3.0.0/scala3-library_sjs1_3-3.0.0.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-library_2.13/1.5.1/scalajs-library_2.13-1.5.1.jar:/Users/my/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-js/scalajs-dom_sjs1_3/2.3.0/scalajs-dom_sjs1_3-2.3.0.jar, -d, /Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/target/scala-3/classes Problem(/Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/src/main/scala/typings/gsap/gsap/SlowMoConfig.scala:10:6, error overriding method apply in trait Function1 of type (arg1: Double): Double;
[error]   method apply of type (linearRatio: Double): typings.gsap.gsap.EaseFunction has incompatible type, Error, Optional[-- [E164] Declaration Error: /Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/src/main/scala/typings/gsap/gsap/SlowMoConfig.scala:10:6 
[error] 10 |  def apply(linearRatio: Double): EaseFunction = js.native
[error]    |      ^
[error]    |error overriding method apply in trait Function1 of type (arg1: Double): Double;
[error]    |  method apply of type (linearRatio: Double): typings.gsap.gsap.EaseFunction has incompatible type
[error]    |
[error]    | longer explanation available when compiling with `-explain`], 164) [thread => 179, project => frontend, ms => 72030, phase => build, id => gsap, flavour => NormalFlavour]
[error] stack trace is suppressed; run last frontend / stImport for the full output
[error] (frontend / stImport) FromFolder(InFolder(/Users/my/MyProject/MusicalMaster/node_modules/gsap),TsIdentLibrarySimple(gsap)) -> Right(Compilation failed:   method apply of type (linearRatio: Double): typings.gsap.gsap.EaseFunction has incompatible type, Error, Optional[-- [E164] Declaration Error: /Users/my/MyProject/MusicalMaster/modules/frontend/target/streams/_global/stImport/_global/streams/sources/g/gsap/src/main/scala/typings/gsap/gsap/SlowMoConfig.scala:10:6 )

https://www.npmjs.com/package/gsap

scala.js version = 1.13.2
sbt-converte = 1.0.0-beta42
scala version = 3.3.1

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

No branches or pull requests

1 participant