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").
Originally reported in sveltejs/kit#7085
Loading this library in a project that uses Node.js ESM without bundling does not work:
I believe the error is coming from this line:
tough-cookie/lib/cookie.js
Line 32 in d4ac580
Is there a reason to have that trailing slash or can it be removed?
The text was updated successfully, but these errors were encountered: