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

Update nan package to fix build issue #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JMTK
Copy link

@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

Resolves #57

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
@JMTK JMTK changed the title Update package.json Update nan package to fix build issue Jan 14, 2023
@JMTK
Copy link
Author

JMTK commented Oct 19, 2023

This now needs to be updated to nan 2.18.0 to support Node 21

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.

Update nan to 2.17.0
1 participant