scalajs-bundler icon indicating copy to clipboard operation
scalajs-bundler copied to clipboard

TypeError: Cannot read property 'minify' of undefined

Open markusa380 opened this issue 6 years ago • 1 comments

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.

markusa380 avatar Feb 03 '19 10:02 markusa380

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

exoego avatar Feb 04 '19 04:02 exoego