Cannot create binding for class DurableObject2 that is not exported by the script [code: 10061]
I'm editing an old version of my CloudFlare worker to add a new Durable Object called DurableObject2
When I try to deploy it, this is the error:
% npx wrangler publish -c wrangler.staging.toml --outdir distYour worker has access to the following bindings:- Durable Objects: - DO: DurableObject - DO2: DurableObject2...✘ [ERROR] A request to the Cloudflare API (/accounts/wwwwww/workers/scripts/kkkkkkk) failed. Cannot create binding for class DurableObject2 that is not exported by the script [code: 10061] If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
% npx wrangler publish -c wrangler.staging.toml --outdir distYour worker has access to the following bindings:- Durable Objects: - DO: DurableObject - DO2: DurableObject2...✘ [ERROR] A request to the Cloudflare API (/accounts/wwwwww/workers/scripts/kkkkkkk) failed. Cannot create binding for class DurableObject2 that is not exported by the script [code: 10061] If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose