Skip to content
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

Bump nan from 2.17.0 to 2.18.0 #11

Merged
merged 1 commit into from Oct 28, 2023
Merged

Bump nan from 2.17.0 to 2.18.0 #11

merged 1 commit into from Oct 28, 2023

Conversation

JMTK
Copy link
Contributor

@JMTK JMTK commented Oct 19, 2023

Fixes:

/root/.cache/node-gyp/21.0.0/include/node/v8-local-handle.h: In instantiation of ‘v8::Local<T>::Local(v8::Local<S>) [with S =
../../nan/nan_callbacks_12_inl.h:175:53:   required from here
/root/.cache/node-gyp/21.0.0/include/node/v8-local-handle.h:253:42: error: static assertion failed: type check
  253 |     static_assert(std::is_base_of<T, S>::value, "type check");
      |                                          ^~~~~
make: *** [zlib_sync.target.mk:122: Release/obj.target/zlib_sync/src/zlib_sync.o] Error 1
make: Leaving directory '/home/jam/discordbot/node_modules/zlib-sync/build'
gyp ERR! build error$
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/jam/discordbot/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:515:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 5.4.0-153-generic
gyp ERR! command "/root/.nvm/versions/node/v21.0.0/bin/node" "/home/jam/discordbot/node_modules/node-gyp/bin/node-gyp.js" "re
gyp ERR! cwd /home/jam/discordbot/node_modules/zlib-sync
gyp ERR! node -v v21.0.0
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok$

Similar issue to #9 after NodeJS 21 v8 Upgrade

@JMTK
Copy link
Contributor Author

JMTK commented Oct 19, 2023

FWIW, I know the discord.js team has looked into preferring the native zlib module in node but I don't think there's been much progress recently as they don't want to outright switch to it
https://github.com/discordjs/discord.js/pull/9279/files

Fixes:
```
/root/.cache/node-gyp/21.0.0/include/node/v8-local-handle.h: In instantiation of ‘v8::Local<T>::Local(v8::Local<S>) [with S =
../../nan/nan_callbacks_12_inl.h:175:53:   required from here
/root/.cache/node-gyp/21.0.0/include/node/v8-local-handle.h:253:42: error: static assertion failed: type check
  253 |     static_assert(std::is_base_of<T, S>::value, "type check");
      |                                          ^~~~~
make: *** [zlib_sync.target.mk:122: Release/obj.target/zlib_sync/src/zlib_sync.o] Error 1
make: Leaving directory '/home/jam/discordbot/node_modules/zlib-sync/build'
gyp ERR! build error$
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/jam/discordbot/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:515:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 5.4.0-153-generic
gyp ERR! command "/root/.nvm/versions/node/v21.0.0/bin/node" "/home/jam/discordbot/node_modules/node-gyp/bin/node-gyp.js" "re
gyp ERR! cwd /home/jam/discordbot/node_modules/zlib-sync
gyp ERR! node -v v21.0.0
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok$
```

Similar issue to #9 after NodeJS 21 v8 Upgrade
@abalabahaha abalabahaha merged commit 7ddc296 into abalabahaha:master Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants