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
I updated my app (in module syntax) from using http-cookie-agent@6.01 to 6.0.2.
now my app is failing with:
/js/test/node_modules/http-cookie-agent/dist/utils/validate_cookie_options.js:8
const _require = 'require' in globalThis ? globalThis.require : (0, _nodeModule.createRequire)(import.meta.url);
^^^^
SyntaxError: Cannot use 'import.meta' outside a module
at internalCompileFunction (node:internal/vm:128:18)
at wrapSafe (node:internal/modules/cjs/loader:1279:20)
at Module._compile (node:internal/modules/cjs/loader:1331:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/js/test/node_modules/http-cookie-agent/dist/undici/cookie_agent.js:8:32)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
Node.js v21.7.1
Describe the bug
I updated my app (in module syntax) from using
http-cookie-agent@6.01
to6.0.2
.now my app is failing with:
To Reproduce
create a dummy app with type
module
:package.json
:and an app
test.js
:then call the app
and the above error shows.
change from
6.0.2
to6.0.1
and the same works fineExpected behavior
Work in
module
appCode that reproduces the bug
see above
Environments
The text was updated successfully, but these errors were encountered: