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

Error: Cannot find module './uws_linux_x64_127.node' in Node 22 #266

Closed
ppedziwiatr opened this issue May 30, 2024 · 2 comments
Closed

Error: Cannot find module './uws_linux_x64_127.node' in Node 22 #266

ppedziwiatr opened this issue May 30, 2024 · 2 comments

Comments

@ppedziwiatr
Copy link

node: v22.2.0
OS:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Error while starting a hyper-express based app:

0|app      | Error: Cannot find module './uws_linux_x64_127.node'
0|app      | Require stack:
0|app      | - /home/ao/ao-cu/node_modules/uWebSockets.js/uws.js
0|app      | - /home/ao/ao-cu/node_modules/hyper-express/index.js
0|app      |     at /home/ao/ao-cu/node_modules/uWebSockets.js/uws.js:22:9
0|app      |     at Object.<anonymous> (/home/ao/ao-cu/node_modules/uWebSockets.js/uws.js:24:3)
0|app      |     at Module._compile (node:internal/modules/cjs/loader:1434:14)
0|app      |     at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
0|app      |     at Module.load (node:internal/modules/cjs/loader:1249:32)
0|app      |     at Module._load (node:internal/modules/cjs/loader:1065:12)
0|app      |     at Module.require (node:internal/modules/cjs/loader:1271:19)
0|app      |     at Hook._require.Module.require (/home/ao/.nvm/versions/node/v22.2.0/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|app      |     at require (node:internal/modules/helpers:123:16)
0|app      |     at Object.<anonymous> (/home/ao/ao-cu/node_modules/hyper-express/index.js:4:21)
@ppedziwiatr
Copy link
Author

ppedziwiatr commented May 30, 2024

works on Node v20.14.0

@ppedziwiatr ppedziwiatr changed the title Error: Cannot find module './uws_linux_x64_127.node' Error: Cannot find module './uws_linux_x64_127.node' in Node 22 May 30, 2024
@kartikk221
Copy link
Owner

This error means that uWebsockets.js (The library used under the hood) does not ship bindings for Node v22 yet.
You can watch or request https://github.com/uNetworking/uWebSockets.js to ship new bindings for Node v22 which hyper-express can then increment to update under the hood.

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