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.14.0 to 2.17.0 #9

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Bump nan from 2.14.0 to 2.17.0 #9

merged 1 commit into from
Feb 2, 2023

Conversation

JMTK
Copy link
Contributor

@JMTK JMTK commented Dec 30, 2022

The postbuild script to rebuild those packages when installing discord.js (on Node 19 for me) with:

../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
   55 | typedef v8::Local<v8::AccessorSignature> Sig;
      |                       ^~~~~~~~~~~~~~~~~
../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
   55 | typedef v8::Local<v8::AccessorSignature> Sig;
      | 

Changelog: nodejs/nan@v2.16.0...v2.17.0

yarn why nan showed that those packages prefer the older versions, simply adding to my package.json

"resolutions": {
    "nan": "2.17.0"
},

fixes the issue. Not sure if there's anything better I could do

The postbuild script to rebuild those packages when installing discord.js (on Node 19 for me)
with:

```
../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
   55 | typedef v8::Local<v8::AccessorSignature> Sig;
      |                       ^~~~~~~~~~~~~~~~~
../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
   55 | typedef v8::Local<v8::AccessorSignature> Sig;
      | 
```

Changelog: nodejs/nan@v2.16.0...v2.17.0

`yarn why nan` showed that those packages prefer the older versions, simply adding to my package.json
```json
"resolutions": {
    "nan": "2.17.0"
},
```

fixes the issue. Not sure if there's anything better I could do
@abalabahaha abalabahaha self-requested a review January 30, 2023 16:30
@ghost
Copy link

ghost commented Feb 1, 2023

Can confirm this fix works for me.

@abalabahaha abalabahaha changed the title Update package.json Bump nan from 2.14.0 to 2.17.0 Feb 2, 2023
@abalabahaha
Copy link
Owner

Sorry this got lost in my inbox, thanks

@abalabahaha abalabahaha merged commit a1ab487 into abalabahaha:master Feb 2, 2023
@JMTK JMTK deleted the patch-1 branch February 2, 2023 04:57
abalabahaha pushed a commit that referenced this pull request Oct 28, 2023
Similar issue to #9 after NodeJS 21 v8 Upgrade
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.

2 participants