npx wrangler No event handlers were registered. This script does nothing. [code: 10021]

npx wrangler deploy src/wrangler.json ⛅️ wrangler 3.107.3 -------------------- ▲ [WARNING] Processing src/wrangler.json configuration: - Unexpected fields found in top-level field: "crons" Total Upload: 0.69 KiB / gzip: 0.40 KiB Your worker has access to the following bindings: - KV Namespaces: - MY_KV: -- ✘ [ERROR] A request to the Cloudflare API (/accounts/--/workers/scripts/my-worker) failed. No event handlers were registered. This script does nothing. [code: 10021]
1 Reply
Walshy
Walshy2w ago
You're trying to deploy a json file?

Did you find this page helpful?