You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading this library in a project that uses Node.js ESM without bundling does not work:
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'node_modules/punycode/' is not supported resolving ES modules imported from build/server/chunks/_server.ts-7b9e82e7.js
This change was introduced in #238 in order to enforce the use of the punycode npm package, rather than node's built-in. One possible resolution is to import the main export directly, require("punycode/punycode.js").
Activity
awaterma commentedon Nov 15, 2022
I think the slash isn't required; I'll take a look at our package.json.
wjhsf commentedon Jan 12, 2023
This change was introduced in #238 in order to enforce the use of the punycode npm package, rather than node's built-in. One possible resolution is to import the main export directly,
require("punycode/punycode.js").fix salesforce#256 by importing `.js` file
Merge pull request #297 from hrueger/patch-1