scalacenter / scalajs-bundler

https://scalacenter.github.io/scalajs-bundler
Other
237 stars 101 forks source link

TypeError: Cannot read property 'minify' of undefined #283

Open markusa380 opened 5 years ago

markusa380 commented 5 years ago

This happened to me yesterday when running fastOptJS::webpack, and it's apparently an issue from the latest version of Terser they are working on fixing right now.

Here is the original issue: https://github.com/webpack-contrib/terser-webpack-plugin/issues/66

I thought I should throw this out there for anyone else having this issue.

exoego commented 5 years ago

Our team faced this too. A workaround is explicitly fix terser version innpmDevDependencies.

npmDevDependencies in Compile ++= Seq(
    "terser" -> "3.14.1",
)

Need to clean to swipe latest problematic 3.16.0 away and download 3.14.1