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

lodash-es@^4.17.15 updates to 4.17.20 which results in ERR_REQUIRE_ESM #257

Closed
bppdddqqqq opened this issue Jan 18, 2021 · 3 comments
Closed

Comments

@bppdddqqqq
Copy link

bppdddqqqq commented Jan 18, 2021

Reason for this issue

4.17.20 of lodash-es introduced a new setting set in package.json which results into an error for latest Node 12 and 14 runtimes. The error is ERR_REQUIRE_ESM.

Steps to Reproduce

Install the package without a lockfile

Mitigation

Set a resolution for lodash-es for 4.17.15

@voondo
Copy link

voondo commented Feb 7, 2021

FYI a workaround is to add this in your package.json:

  "resolutions": {
    "lodash": "4.17.15",
    "lodash-es": "4.17.15"
  },

@Saunved
Copy link

Saunved commented Apr 21, 2021

Don't forget to run yarn or npm install after making this change!

@abishekrsrikaanth
Copy link

I have this same issue on v1.8.30

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

5 participants