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 have searched existing issues to ensure the bug has not already been reported
Mongoose version
8.0.2
Node.js version
20v
MongoDB server version
6.3.0
Typescript version (if applicable)
No response
Description
inspect ??= defaultInspect;
^^^
SyntaxError: Unexpected token '??='
at wrapSafe (internal/modules/cjs/loader.js:1029:16)
at Module._compile (internal/modules/cjs/loader.js:1078:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
Steps to Reproduce
want to solve
Expected Behavior
No response
The text was updated successfully, but these errors were encountered:
Are you sure you're on Node 20? This syntax error is indicative of being on Node 14 or earlier, for example #14129. Also are you using the esm npm package? That's been a culprit in this particular issue, like in #13204.
vkarpov15
added
the
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
label
Dec 6, 2023
Prerequisites
Mongoose version
8.0.2
Node.js version
20v
MongoDB server version
6.3.0
Typescript version (if applicable)
No response
Description
inspect ??= defaultInspect;
^^^
SyntaxError: Unexpected token '??='
at wrapSafe (internal/modules/cjs/loader.js:1029:16)
at Module._compile (internal/modules/cjs/loader.js:1078:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
Steps to Reproduce
want to solve
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: