Hey, I can't make a new durable object : ``` Cannot create binding for class 'Trainer' because it i

Hey, I can't make a new durable object :
Cannot create binding for class 'Trainer' because it is not currently configured to implement durable objects. Did you forget to apply a --new-class migration to it? [code: 10061]
Cannot create binding for class 'Trainer' because it is not currently configured to implement durable objects. Did you forget to apply a --new-class migration to it? [code: 10061]
But if I try to add it
npx wrangler deploy --new-class Trainer
✘ [ERROR] Unknown arguments: new-class, newClass
npx wrangler deploy --new-class Trainer
✘ [ERROR] Unknown arguments: new-class, newClass
In my wrangler I have
[[durable_objects.bindings]]
name = "DURABLE_TRAINER"
class_name = "Trainer"
[[migrations]]
tag = "v1"
new_classes = ["Trainer"]
[[durable_objects.bindings]]
name = "DURABLE_TRAINER"
class_name = "Trainer"
[[migrations]]
tag = "v1"
new_classes = ["Trainer"]
I already did it once and then I deleted my durable object via dashboard, how to remake one ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?