Skip to content
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

5.3.2 package release does not include dist. #491

Closed
dwjohnston opened this issue Jun 2, 2022 · 4 comments
Closed

5.3.2 package release does not include dist. #491

dwjohnston opened this issue Jun 2, 2022 · 4 comments

Comments

@dwjohnston
Copy link

Bug report

Latest publish (5.3.2) appears to have not included the dist folder.

Actual Behavior

When I install terser-webpack-plugin, the package.json main property says dist/index.js but no dist folder is included.

This can cause error messages like this one in create-react-app facebook/create-react-app#10515

Expected Behavior

Those files should be included.

How Do We Reproduce?

yarn init
yarn add terser-webpack-plugin 

navigate to the node_modules folder and see that dist is not included.

Also, repro here: https://github.com/dwjohnston/terser-wb-rerpro/tree/main

@shermify
Copy link

shermify commented Jun 2, 2022

Can confirm, there is nothing in the package.

@dwjohnston
Copy link
Author

For anyone just wanting to get CRA started, add this to your package json:

  "resolutions": {
    "terser-webpack-plugin": "5.3.1"
  },

@ChristmasWoe
Copy link

@dwjohnston Just found out resolutions didn’t work in npm, but I’ve used overrides instead, thank you

@alexander-akait
Copy link
Member

Please try https://github.com/webpack-contrib/terser-webpack-plugin/releases/tag/v5.3.3

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

4 participants