Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
1 vote
0 answers
92 views

I am working on an Electron project with node-api (for C++ addons). The app crashes, even after a full-build. The problem that I am facing occurs within the C++ template addon that I have made. I have ...
1 vote
0 answers
138 views

We have a REST web service written in TypeScript that runs on Node, and a large legacy C++ library that provides services for the web service. We use NAPI to provide JS bindings for the C++ library, ...
0 votes
0 answers
55 views

This is my folder structure: └── my-electron-project/ ├── lib/ │ └── addon/ │ ├── build/ │ │ └── Release/ │ │ └── addon.node │ ├── addon.cc │ ├── binding.gyp │ ...
0 votes
1 answer
138 views

I have an application which has JS and C layers. From JS layer, I call function to C layer passing the JS typed array. The C function has to convert to C array. I am doing the following. It looks like ...
0 votes
0 answers
2k views

Basically I'm calling a c++ function through addon into my Electron js javascript code. I have to use this function in a interval every 1 second. The function works fine however sometimes the app ...
0 votes
0 answers
70 views

I am using @el3um4s/node-mdb package, so when i sql the commands SELECT * FROM API_DATA WHERE TRNo = 1002 AND VehicleNo = 'AP16TT1002' like this i am getting correct query result but when i tried ...
0 votes
2 answers
446 views

I want to build a SQL query such that the filter clauses can be added dynamically with placeholder. Ex : router.get('/test',(req,res) => { const {name , account , id} = req.query const ...
-1 votes
1 answer
166 views

Please I need a help on how to fetch a data from node to react, I have been stuck here for 2 weeks now. Here are my backend code: server.js: require("dotenv").config(); const app = require(&...
0 votes
0 answers
13 views

We are planning to upload Image only available for selected users. Here we have store the Image with visible users list in MuSql database. At the same time consider a mobile API (Node JS), In that we ...
0 votes
1 answer
3k views

I have an API set up that receives a token, and I want to store that token in a database. But I also want to store the origin URL. Let's say my API endpoint is located at https://myapp.com/api/connect ...
0 votes
1 answer
467 views

I have a simple native Node.js addon that uses N-API. It exports two functions, set_callback and call_callback: set_callback takes a function parameter and assigns it to a global variable js_callback ...
0 votes
1 answer
1k views

My requirement is simple. I already have an one azure app service (https://<app_service>.azurewebsites.net/) and I hosted a NodeJs Web API app under that above mentioned app service. It worked ...
0 votes
0 answers
188 views

i need to create chrome extension that can call c++ from js so i use nodeapi and to achieve that I used the node-gyp package.json { "name": "test", "version": "0....
0 votes
0 answers
195 views

In my application, I am using Node-API, napi_make_callback to invoke a javascript function which returns some key connecting to different server. The javascript callback function shall perform an ...
0 votes
1 answer
512 views

I am struggling hard since yesterday getting the data from JSON, I don't understand why the fixture is not accessible. When I tried to get the ID, it gives me an error saying id isn't defined. This ...
user avatar

15 30 50 per page