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
npx webpack, show ERROR in main.js from Terser #8694
Comments
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
I was trying to get tailwindcss working with Django and thought it's some compatibility problem. With Laravel Mix Updated with workaround |
Head over to webpack-contrib/terser-webpack-plugin#66 for a workaround. |
Simple run: |
Is this a recent issue? The guide worked for me 2 weeks ago and my project still works. I noticed though when I tried to recreate my environment for a co-worker it kept failing because of this issue. TomCosta's workaround solved my problem as well! |
Yeah, this issue occurred yesterday after a new release with breaking changes. |
@Mspataro I was trying to get this to work for the last week and stumbled across the same error everytime when I tried to change something. The first time i got the error was at thursday I think. |
I ran into the same issue today. TomCosta's workaround works. |
Tom Costa is da man! Thanks! |
Close in favor webpack-contrib/terser-webpack-plugin#66 |
I realize this is closed, but it looks like we are stuck until Webpack updates its dependency on |
/cc @sokra |
Nothing to do on webpack side. |
I write a demo according to official documents。
npm i webpack webpack-cli --save-dev
the project directory like this:
index.html
-src
-index.js
package.json
when i run npx webpack,Error occurred
ERROR in main.js from Terser
TypeError: Cannot read property 'minify' of undefined
The text was updated successfully, but these errors were encountered: