fictionco / fiction

(Join Waiting List) Personal Marketing Platform. A powerful platform for your online identity.
https://www.fiction.com
1.42k stars 109 forks source link

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

Closed bppdddqqqq closed 2 years ago

bppdddqqqq commented 3 years ago

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 commented 3 years ago

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

  "resolutions": {
    "lodash": "4.17.15",
    "lodash-es": "4.17.15"
  },
Saunved commented 3 years ago

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

abishekrsrikaanth commented 3 years ago

I have this same issue on v1.8.30