-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
A minimal setup fails with Scala 3 #1081
Comments
This appears to be more of a I've been in a similar situation myself with Scala 3, which prompted me to switch to a |
I tried the suggested command, but I don't have the necessary knowledge on |
I hit what seems to be the same issue. Here's the output of the Webpack build that @nkgm suggested:
|
Finally got a chance to look into this issue. Was hoping to investigate some more, but this could easily take another week so here's my findings so far. The sourcemap url's to the published source files are missing a
You can easily verify this by opening each url in a new brower tab. A quick workaround would be to disable scalajs sourcemaps: Compile / fastOptJS / scalaJSLinkerConfig ~= { _.withSourceMap(false) },
A PR would be trivial replacing this line with What baffles me still is how this only fails in Scala 3, so I'll be taking a look at the actual sourcemap files next chance I get. Regarding my previous answer, |
I had a similar issue and fixed it by bumping the webpack version in the sbt build: |
I'm new to scalajs-react, and I've set up a minimal project. It works well with Scala 2.13.10 but it fails with Scala 3.2.1 (3.1.3 also shows the same error). When I run the command
sbt "Compile / fastOptJS / webpack"
in order to bundle my app, I get this error messages:Here's my build.sbt and the source code:
If I switch to Scala 2.13.10, this works well as expected. Anyone any idea about the issue?
The text was updated successfully, but these errors were encountered: