Skip to content

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

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

Closed
ipf opened this issue Feb 4, 2019 · 2 comments
Closed

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

ipf opened this issue Feb 4, 2019 · 2 comments

Comments

@ipf
Copy link

ipf commented Feb 4, 2019

After upgrading to webpack-encore 0.23 I ran into the following error when running
yarn run encore production in my Symfony / Vue project:
TypeError: Cannot read property 'minify' of undefined

This solution proposed in vuejs/vue-cli#3407 worked for me:
Add

  "resolutions": {
    "terser": "3.14.1"
  }

to your package.json. It seems the most current version of terser 3.16 broke something.

@jmsche
Copy link
Contributor

jmsche commented Feb 4, 2019

Seems related to this: #15 (comment)

@Lyrkan
Copy link
Collaborator

Lyrkan commented Feb 4, 2019

It should be fixed in Terser now :)

@Lyrkan Lyrkan closed this as completed Feb 4, 2019
Cooty added a commit to Cooty/Symfony-4-Hands-on-Course that referenced this issue Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants