-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Node.js v22: RangeError: Maximum call stack size exceeded #3029
Comments
Other issues, seems to be going around in circles, but this the main one: V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet>npm uninstall -g node-gyp removed 101 packages in 379ms V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet>npm install -g node-gyp@latest added 101 packages in 2s 14 packages are looking for funding V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet>yarn gyp info find VS using VS2022 (17.8.34316.72) found at: addon.cpp V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan_callbacks.h(55,23): error C2065: 'AccessorSignature': undeclared identifier [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan_callbacks.h(55,13): error C2923: 'v8::Local': 'AccessorSignature' is not a valid template type argument for parameter 'T' [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan_callbacks.h(55,42): error C2955: 'v8::Local': use of class template requires template argument list [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,14): error C2955: 'v8::Local': use of class template requires template argument list [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2641: cannot deduce template arguments for 'v8::Local' [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2780: 'v8::Local v8::Local(const v8::LocalBase &)': expects 1 arguments - 0 provided [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2780: 'v8::Local v8::Local(const v8::Local &,v8::api_internal::StackAllocated::no_checking_tag)': expects 2 arguments - 0 provided [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2780: 'v8::Local v8::Local(v8::api_internal::StackAllocated::no_checking_tag)': expects 1 arguments - 0 provided [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2780: 'v8::Local v8::Local(v8::Local V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2783: 'v8::Local v8::Local(void)': could not deduce template argument for 'T' [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2444,34): error C2780: 'v8::Local v8::Local(v8::Local)': expects 1 arguments - 0 provided [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan.h(2470,6): error C2665: 'v8::ObjectTemplate::SetAccessor': no overloaded function could convert all the argument types [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\node_modules\nan\nan_typedarray_contents.h(34,43): error C2039: 'GetContents': is not a member of 'v8::ArrayBuffer' [V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3\build\sha3.vcxproj] gyp ERR! build error |
Please retry with Node.js v20 instead of v22 which was just released 24 hours ago. |
This looks like nodejs/node#52705 which is a bug in Node.js 22. |
using Node.js v20 worked pretty well with me . thanks |
Fixed and merged in: |
V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet>npm rebuild
npm error code 7
npm error path V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@3.8.0
npm error gyp info using node@22.0.0 | win32 | x64
npm error (node:37456) [DEP0060] DeprecationWarning: The
util._extend
API is deprecated. Please use Object.assign() instead.npm error (Use
node --trace-deprecation ...
to show where the warning was created)npm error (node:37456) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.npm error gyp http GET https://nodejs.org/download/release/v22.0.0/node-v22.0.0-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v22.0.0/node-v22.0.0-headers.tar.gz
npm error gyp ERR! UNCAUGHT EXCEPTION
npm error gyp ERR! stack RangeError: Maximum call stack size exceeded
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! stack at Stats.set [as atime] (node:internal/fs/utils:469:18)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command "G:\Tools\NodeJS\node.exe" "V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm error gyp ERR! cwd V:\Worktrees\ViteXWallet\version-1.6.9\vite-web-wallet\node_modules\sha3
npm error gyp ERR! node -v v22.0.0
npm error gyp ERR! node-gyp -v v3.8.0
npm error gyp ERR! This is a bug in
node-gyp
.npm error gyp ERR! Try to update node-gyp and file an Issue if it does not help:
npm error gyp ERR! https://github.com/nodejs/node-gyp/issues
npm error A complete log of this run can be found in: C:\Users\skybu\AppData\Local\npm-cache_logs\2024-04-27T15_34_57_154Z-debug-0.log
The text was updated successfully, but these errors were encountered: