Uncaught Error: No such module "node:http2".

hey yall, im building a vercel mono repo. In my package i have an client api with hey-api library (https://heyapi.dev/). The output of the heyapi genrates is in a package and im importing that package in one of my workers to call but im running into this error. Any way to debug this? Or understand why. please help thank you! my wranger.jsonc
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "meetup-worker",
"main": "./src/index.ts",
"compatibility_flags": ["nodejs_compat_v2", "nodejs_compat_populate_process_env", "enable_nodejs_http_modules"],
"compatibility_date": "2025-09-05",
"upload_source_maps": true,
"observability": {
"enabled": true,
},
"browser": {
"binding": "MYBROWSER",
},
"version_metadata": {
"binding": "CF_VERSION_METADATA",
},
}
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "meetup-worker",
"main": "./src/index.ts",
"compatibility_flags": ["nodejs_compat_v2", "nodejs_compat_populate_process_env", "enable_nodejs_http_modules"],
"compatibility_date": "2025-09-05",
"upload_source_maps": true,
"observability": {
"enabled": true,
},
"browser": {
"binding": "MYBROWSER",
},
"version_metadata": {
"binding": "CF_VERSION_METADATA",
},
}
No description
1 Reply
lord
lordOP3mo ago
rip

Did you find this page helpful?