target/scala-2.13/scalajs-bundler/main/
for the missing *-fastopt-entrypoint.js
file? Is everything else there? And what do you normally do to recover from the error?
If I do
sbt:main> inspect main/npmUpdate/crossTarget
[info] Setting: java.io.File = < … project path ...>\app\electron-main\target\scala-2.13\scalajs-bundler\main
Then you can see I get the path correctly, but doing
println((npmUpdate / crossTarget).value.getAbsolutePath())
In a different task in the same submodule yields
< … project path …>\app\electron-main\target\scala-2.13
Does anyone have any ideas for what I’m doing wrong?
@sidnt one of the webpack solutions for this is called Externals https://webpack.js.org/configuration/externals/
Alternatively, you can also define a Scala.js facade with JSGlobal instead of JSImport for your JS dependency, although it will probably be hard to use pre-made facades that already rely on JSImport that way
[error] Module Warning (from ./node_modules/scalajs-friendly-source-map-loader/index.js):
[error] (Emitted value instead of an instance of Error) Cannot find source file '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala': Error: Can't resolve '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala' in '/Users/jason/source/erp/erp-front/target/scala-2.12/scalajs-bundler/main’
/home/nick/
even coming from? Possibly related to scalacenter/scalajs-bundler#173. Maybe I ought to ask in the scalajs channel.
../../../../public/fonts/My-Font.eot
const resourcesDir = path.resolve(rootDir, "../common/src/main/resources”);