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

Need possible solution for "ref-napi" #191

Open
dhaka2071 opened this issue Dec 14, 2024 · 1 comment
Open

Need possible solution for "ref-napi" #191

dhaka2071 opened this issue Dec 14, 2024 · 1 comment

Comments

@dhaka2071
Copy link

Case -1: I want to access module 'ref-napi' outside ibmmq lib to apply my custom method to store some value. if i install this package it's showing different type. I am looking ibmmq ref-napi one. Is there possible to install ref-napi? or how can i point from my file.

Case-2: I am getting exception during call custom method inside ibmmq lib mqi.js
Error is: Error: Cannot find module 'ref-napi'
But i did declaration

var ref = require('ref-napi');
var ffi = require('ffi-napi');
var StructType = require('ref-struct-di')(ref);
var ArrayType = require('ref-array-di')(ref);

@chughts
Copy link

chughts commented Dec 14, 2024

What are you trying to do?

Neither ref-napi nor ffi-napi are direct (or as of current, indirect) dependencies of ibmmq

ffi-napi used to be a direct dependency, with ref-napi a consequental indirect dependency, but it was unstable, and was removed in favour of pre-building the c code in \src into the Node FFI into the C layer MQI

 "prebuild": "prebuildify --napi --target 18.20.0 ",

Which gets used by the node.js ibmmq library, when you see this require statement.

const mqnapi = require("node-gyp-build")(path.join(__dirname, ".."));

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

No branches or pull requests

2 participants