[BUG]: Can't build on windows 11 : missing function arguments
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp, electron, node.js
- Domain
- build-system, embedded-iot
Research direction
Reproduce the failure in a fresh electron-vite project using the listed Yarn and Windows setup, then inspect src/windows/DeviceINQ.cc alongside the build.log errors. The work is done when node-bluetooth builds successfully on Windows 11 without the reported V8 API errors.
Written by the indexing model from the issue text.
Description
Description of the bug
Installed with Yarn on electron-vite project on windows 11
Yarn install says node-bluetooth@npm:1.2.6 must be built because it never has been before or the last one failed
then build fails with error :
...\node_modules\node-bluetooth\src\windows\DeviceINQ.cc(128,60): error C2660: 'v8::FunctionTemplate::GetFunction' : function doesn't take 0 arguments
Steps To Reproduce
In fresh electron-vite project :
- choco install python visualstudio2022-workload-vctools -y
- yarn add -d electron-rebuild
- yarn add node-bluetooth bindings
Additional Information
Yarn add result :
node-bluetooth@npm:1.2.6 must be built because it never has been before or the last one failed
node-bluetooth@npm:1.2.6 couldn't be built successfully (exit code 1, logs can be found here: ...\AppData\Local\Temp\xfs-158d74f1\build.log)
build.log :
each of the following errors happen multiple times, with a lot of warnings I didn't paste here
...\node_modules\node-bluetooth\src\windows\DeviceINQ.cc(128,60): error C2660: 'v8::FunctionTemplate::GetFunction' : function doesn't take 0 arguments
...\node_modules\node-bluetooth\src\windows\DeviceINQ.cc(336,30): error C2665: 'v8::String::Utf8Value::Utf8Value' : no overloaded function could convert all the argument types
...\node_modules\node-bluetooth\src\windows\DeviceINQ.cc(416,32): error C2661: 'v8::Object::Set' : no overloaded function takes 2 arguments
...\node_modules\node-bluetooth\src\windows\DeviceINQ.cc(522,9): error C2660: 'v8::Function::Call' : function doesn't take 3 arguments
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
- Dominant language
- C++
- Stars
- 205
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lsongdev/node-bluetooth
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
lsongdev/node-bluetooth#60 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
lsongdev/node-bluetooth#57 · 1 comment · 2 reactions ·
-
Maintenance status? Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
lsongdev/node-bluetooth#55 · 8 comments ·
-
Battery status? Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
lsongdev/node-bluetooth#54 · 1 comment ·
-
BT node Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
lsongdev/node-bluetooth#53 ·
All issues in lsongdev/node-bluetooth
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-cli#6547 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·