Closed
Description
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions & operating system are you using?
Wrangler 4.16.0, Node v22.14.0, Mac OS Latest
Please provide a link to a minimal reproduction
No response
Describe the Bug
4.15.2 works fine. 4.16.0 gives below error.
$ wrangler deploy --no-bundle dist/index.js --env staging
⛅️ wrangler 4.16.0
-------------------
Total Upload: 8044.68 KiB / gzip: 1089.78 KiB
Your Worker has access to the following bindings:
- Hyperdrive Configs:
- HYPERDRIVE: ...
- R2 Buckets:
- ACTION_METRICS: ....
✘ [ERROR] A request to the Cloudflare API (/accounts/..../workers/scripts/api-staging/versions) failed.
Uncaught TypeError: require_streams(...) is not a function
at null.<anonymous>
(file:///Users/bkniffler/GitHub/vrplatform/api/node_modules/iconv-lite/lib/index.js:144:9) in
../node_modules/iconv-lite/lib/index.js
at null.<anonymous> (index.js:12:52) in __require
at null.<anonymous>
(file:///Users/bkniffler/GitHub/vrplatform/api/node_modules/raw-body/index.js:18:13) in
../node_modules/raw-body/index.js
at null.<anonymous> (index.js:12:52) in __require
at null.<anonymous>
(file:///Users/bkniffler/GitHub/vrplatform/api/node_modules/co-body/lib/json.js:7:13) in
../node_modules/co-body/lib/json.js
at null.<anonymous> (index.js:12:52) in __require
at null.<anonymous>
(file:///Users/bkniffler/GitHub/vrplatform/api/node_modules/co-body/lib/any.js:8:14) in
../node_modules/co-body/lib/any.js
at null.<anonymous> (index.js:12:52) in __require
at null.<anonymous>
(file:///Users/bkniffler/GitHub/vrplatform/api/node_modules/co-body/index.js:3:28) in
../node_modules/co-body/index.js
at null.<anonymous> (index.js:12:52) in __require
[code: 10021]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Done