pubky / pkarr

Public Key Addressable Resource Records (sovereign TLDs)
https://app.pkarr.org
MIT License
153 stars 17 forks source link

(fix) fixes ERR_REQUIRE_ESM #34

Closed SeverinAlexB closed 10 months ago

SeverinAlexB commented 10 months ago

Fixes the ERR_REQUIRE_ESM when using pkarr in CommonJS.

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
SeverinAlexB commented 10 months ago

Turns out bittorrent-dht is a esm only library so this PR should be ok.

SeverinAlexB commented 10 months ago

Closing. Switched to a ESM build.