-
Notifications
You must be signed in to change notification settings - Fork 10.3k
TypeError: Cannot read property 'minify' of undefined at minify with terser plugin #11508
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
Comments
I get the same errors with the latest packges - reverting to the versions I had before avoids this error. Working setup
Broken setup (npmPackages only, rest is the same as above)
|
Looks like a problem with terser-webpack-plugin: Here's the simplest workaround at the moment: # npm
npm i --save-exact --save terser@3.14
# yarn
yarn add terser@3.14 --exact |
yes terser broke webpack. should be tempoorary. related issues: terser/terser#251 |
The project generated by scaffold reported. |
deammer's suggested workaround above did not help build succeed for me but pitops suggestion on terser-webpack-plugin did:
"resolutions": {
"terser": "3.14.1"
} YMMV but thought I would drop it in here in case it helps someone else. |
This was fixed in terser/terser@03b0876 Updating terser to v3.16.1 should fix this, closing this for now Updating our |
terser is on 5.5.0 still broken |
Description
Production build doesn't build, but dev build is good
Steps to reproduce
Just run gatsby build
P. S. This is after update
Part of yarn.lock before update while everything's works (good prod build without any errors)
After update we have this (errors in "Environment" section below)
Expected result
Prod build
Actual result
Prod build with error on js stage
Environment
gatsby info --clipboard
gatsby build --verbose
The text was updated successfully, but these errors were encountered: