-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with node v22.2.0 #930
Comments
Unfortunately this seems to be an issue with one of the dependencies of Eslint. See the following posts for more context - ajv-validator/ajv#2343 and garycourt/uri-js#95. You can use node 18 / 20 or override I will update the dev dependencies when the underlying packages are updated. |
It seems to be caused by the fact that |
This solved the issue
|
I can confirm @Saugatkafley, this worked for me too. Nasty bug got me walking around my whole blog posts database. Thank you for the fix. |
I am running into this error, but reinstalling node does not solve for me. This bug is driving me nuts 😡 SOLVED: Step 1: Updated Node.js version in the Vercel settings to v20 (since 18 is being deprecated in early 2025) Step 2: Added this to my package.json file:
When I pushed the update to Vercel I finally stopped getting the EDIT: For posterity vercel/vercel#12827 |
The issue:
Running
yarn build
gives▲ Next.js 14.0.3
(node:86224) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)SuccessCallbackError {
error: SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:163:18)
at callTranslator (node:internal/modules/esm/loader:430:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:436:30)
at ModuleJob._link (node:internal/modules/esm/module_job:106:19),
_tag: 'SuccessCallbackError',
toString: [Function (anonymous)],
[Symbol()]: {
error: SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:163:18)
at callTranslator (node:internal/modules/esm/loader:430:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:436:30)
at ModuleJob._link (node:internal/modules/esm/module_job:106:19)
},
[Symbol()]: [ 'error' ]
}
Creating an optimized production build .%
After reinstalling the node@18, the issue get solved and everything works fine.
The text was updated successfully, but these errors were encountered: