Skip to content

Fix Build Issue#46

Open
Kami-Guru wants to merge 1 commit intoSnosMe:masterfrom
Kami-Guru:fix-build-issue
Open

Fix Build Issue#46
Kami-Guru wants to merge 1 commit intoSnosMe:masterfrom
Kami-Guru:fix-build-issue

Conversation

@Kami-Guru
Copy link
Contributor

@Kami-Guru Kami-Guru commented Aug 25, 2025

Hey @SnosMe uh sorry this is kinda awkward, looks like I broke something in #45 - just pulled latest to my personal project and I'm getting this build error:

image

I don't write in C and I didn't touch that file so not sure exactly what the hell is going on here, Copilot says:

Cause:
This is likely due to a change in Node.js or Electron's N-API headers, which now enforce stricter type checking.

Seems to be right, as docs agree with expected type: https://nodejs.org/api/n-api.html#napi_create_buffer

I deleted and re-cloned this repo and started getting the issue here as well (guess I fixed it locally a while ago and forgot so I never committed?), changes in this PR fix those issues and I can run demo successfully after this change.

Patching this locally fixes build in my personal project, please double check this PR though as I have never written a line of C in my life :^)

@Kami-Guru
Copy link
Contributor Author

Kami-Guru commented Aug 25, 2025

Actually this diff on #43 is interesting:

image

Please feel free to commit to this branch if that's a relevant change

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