Closed SeverinAlexB closed 10 months ago
Fixes the ERR_REQUIRE_ESM when using pkarr in CommonJS.
ERR_REQUIRE_ESM
I am still getting this error though so it's still not building yet.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/severinbuhler/git/ddns/pkarr/js/node_modules/bittorrent-dht/package.json
Turns out bittorrent-dht is a esm only library so this PR should be ok.
bittorrent-dht
Closing. Switched to a ESM build.
Fixes the
ERR_REQUIRE_ESM
when using pkarr in CommonJS.I am still getting this error though so it's still not building yet.