-
Notifications
You must be signed in to change notification settings - Fork 101
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
Error parsing webpack stats output #423
Comments
There is a really old unmerged PR that solves this - #408. |
@ptrdom I am similarly getting an error due to According to the docs, WebPack only mentions My error is resolved with this addition to your PR: final case class WebpackError(moduleName: Option[String], message: String, loc: Option[String]) |
@evbo Good eye, I did not spot that in docs. I will implement your suggestion. Maybe adding the stack trace would be a good idea too. |
I am currently hitting this issue when upgrading to the new version with webpack 5. Indeed, there are warnings without a |
@cornerman I don't mean to speak for everyone, as I know webpack is still one of the most popular bundlers, but Vite has sort of taken the bundling world by storm! I think many people using Scalajs use Vite, and hence scalajs-bundler might not be getting as much love as it used to. I know this may be off-topic or counter-productive, but if you can bite the bullet, I migrated to Vite within a day for a fairly large project. And I'm never looking back... Sjs did an amazing job presenting, so it's a breeze :) I hope this helps... |
@evbo Thanks for sharing your good experience with vite and the video. I want to look into vite, but did not find the time yet. For now updating to webpack 5 seemed a bit faster. My current workaround is using |
fullOptJS::webpack
threw the following error for https://github.com/ptrdom/akka-http-slinky-endpoints4s:JSON output was:
Seems like
moduleName
not a mandatory field for warnings in Webpack 5. Relatively simple change.scalajs-bundler/sbt-scalajs-bundler/src/main/scala/scalajsbundler/Stats.scala
Line 55 in d083e6d
The text was updated successfully, but these errors were encountered: