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

Importing DatalayerSystem from ctrlx-datalayer package in Node app on Windows fails #24

Open
ponix-net opened this issue Aug 30, 2023 · 4 comments

Comments

@ponix-net
Copy link

Simple app in Node.js (e.g. datalayer.client) chrashes when run on Windows with following error:

node:internal/modules/cjs/loader:1319
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: The specified module could not be found.
\?\C:\workspace\ctrlx-test\node_modules\ctrlx-datalayer\prebuilds\win32-x64\node.napi.node
at Module._extensions..node (node:internal/modules/cjs/loader:1319:18)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at load (C:\workspace\ctrlx-test\node_modules\node-gyp-build\node-gyp-build.js:22:10)
at Object. (C:\workspace\ctrlx-test\node_modules\ctrlx-datalayer\dist\addon.js:7:42)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32) {
code: 'ERR_DLOPEN_FAILED'
}

Node.js v20.5.1

On Linux this library is loaded with no problems.

@albrecht-j
Copy link
Collaborator

@ponix-net Hi do you use the package from npmjs.com? https://www.npmjs.com/package/ctrlx-datalayer

@ponix-net
Copy link
Author

@ponix-net Hi do you use the package from npmjs.com? https://www.npmjs.com/package/ctrlx-datalayer

Yes, exactly that one.

@albrecht-j
Copy link
Collaborator

@ponix-net did you installed the required libraries e.g. openssl?

@ponix-net
Copy link
Author

Okay, it was openssl missing. But error didn't say that. Is this written in any documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants