2 ms·
Wait till you throw a package.json with "type": "module" in there. Everything used to work until Node 12.15, then 12.16 started throwing when trying to require
by wonderlg 6y ago
Wait till you throw a package.json with "type": "module" in there.
Everything used to work until Node 12.15, then 12.16 started throwing when trying to require type:module packages with `require` (which is what `esm` does)
https://github.com/standard-things/esm/issues/868 https://github.com/standard-things/esm/issues/868