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

Node JS v18 support #728

Closed
DanMiMe opened this issue Aug 11, 2022 · 3 comments
Closed

Node JS v18 support #728

DanMiMe opened this issue Aug 11, 2022 · 3 comments

Comments

@DanMiMe
Copy link

DanMiMe commented Aug 11, 2022

Hello,

the upgrade for nodejs v16 to v18(multiple versions tested) with(edge-js 18.4.0) causes runtime problems:

server\node_modules\edge-js\samples>node 101_hello_lambda.js
node:internal/modules/cjs/loader:1189
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: Module did not self-register: '\?\c:\PublicNodeJs\EposWebApp\server\node_modules\edge-js\lib\native\win32\x64\18.4.0\edge_nativeclr.node'.
←[90m at Module._extensions..node (node:internal/modules/cjs/loader:1189:18)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:827:12)←[39m
←[90m at Module.require (node:internal/modules/cjs/loader:1005:19)←[39m
←[90m at require (node:internal/modules/cjs/helpers:102:18)←[39m
at Object. (c:\PublicNodeJs\EposWebApp\server\node_modules\←[4medge-js←[24m\lib\edge.js:52:8)
←[90m at Module._compile (node:internal/modules/cjs/loader:1105:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:827:12)←[39m {
code: ←[32m'ERR_DLOPEN_FAILED'←[39m
}

@folofse
Copy link

folofse commented Sep 1, 2022

Hi,

According to similar questions it might be a case of missing dll-files. I tried to figure out which was missing by running a depency-walker , but I'm not sure if that is fully up to date since it suggested files I couldn't find.

In this thread they suggest you to download Microsoft Visual C++ 2015 Redistributable (x64). But that have not solved it for me either. parcel-bundler/parcel#7104

I compiled the node application on Mac and tried to run it on Windows 7 with force-installed Nodej 18.8.0.

Maybe some one else has more luck and can find a working solution?

@agracio
Copy link
Collaborator

agracio commented Dec 9, 2022

You can use https://github.com/agracio/edge-js that comes precompiled with new versions of NodeJs.

@DanMiMe
Copy link
Author

DanMiMe commented Dec 22, 2022

You can use https://github.com/agracio/edge-js that comes precompiled with new versions of NodeJs.

Thanks, the new Version von edge-js solved my problem.

@DanMiMe DanMiMe closed this as completed Dec 22, 2022
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

3 participants