workerd/server/workerd-api.c++:961: error: wrapped binding module can't be resolved

Trying to run wrangler dev, results in an instant crash:
⛅️ wrangler 4.22.0
───────────────────
Your Worker has access to the following bindings:
Binding Resource Mode
env.MAIN_DB (main-db-dev) D1 Database local
env.ENVIRONMENT ("dev") Environment Variable local

╭──────────────────────────────────────────────────────────────────────╮
│ [b] open a browser [d] open devtools [c] clear console [x] to exit │
╰──────────────────────────────────────────────────────────────────────╯
⎔ Starting local server...
✘ [ERROR] workerd/server/workerd-api.c++:961: error: wrapped binding module can't be resolved (internal modules only); moduleName = cloudflare-internal:d1-api



✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.


If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
? Would you like to report this error to Cloudflare? Wrangler's output and the error details will be shared with the Wrangler team to help us diagnose and fix the issue. › (Y/n)[wrangler:info] Ready on http://localhost:23400
⎔ Reloading local server...
🪵 Logs were written to "/Users/yolocat/Library/Preferences/.wrangler/logs/wrangler-2025-06-26_20-45-24_978.log"
⛅️ wrangler 4.22.0
───────────────────
Your Worker has access to the following bindings:
Binding Resource Mode
env.MAIN_DB (main-db-dev) D1 Database local
env.ENVIRONMENT ("dev") Environment Variable local

╭──────────────────────────────────────────────────────────────────────╮
│ [b] open a browser [d] open devtools [c] clear console [x] to exit │
╰──────────────────────────────────────────────────────────────────────╯
⎔ Starting local server...
✘ [ERROR] workerd/server/workerd-api.c++:961: error: wrapped binding module can't be resolved (internal modules only); moduleName = cloudflare-internal:d1-api



✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.


If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
? Would you like to report this error to Cloudflare? Wrangler's output and the error details will be shared with the Wrangler team to help us diagnose and fix the issue. › (Y/n)[wrangler:info] Ready on http://localhost:23400
⎔ Reloading local server...
🪵 Logs were written to "/Users/yolocat/Library/Preferences/.wrangler/logs/wrangler-2025-06-26_20-45-24_978.log"
1 Reply

Did you find this page helpful?