Closed dorian-marchal closed 5 years ago
Thank you @dorian-marchal!
This is hitting because esm
has early adopted a change coming in Node (soon). This is good to know so I can pass this along to them.
Update:
Turns out it was typos on my end.
Update:
esm
v3.2.21 is released :tada:
Thank you! :muscle:
I think you meant 3.2.22* (the latest version on npm).
GitHub releases don't seem to match npm ones (unless you amended 3.2.21 on npm, this issue was fixed in 3.2.22).
When a package with a faulty
main
entry is imported,esm
throws with:Without using
esm
,index.js
is used as the entry point.Note that this is a regression in 3.2.21. 3.2.20 works as expected.
Here is a small repro using
find-parent-dir
(a package with a badmain
entry): https://github.com/dorian-marchal/esm-issue