I m having a strange bug with wrangler

I'm having a strange bug with wrangler in local mode working, but deploying the code or running without --local results in the DurableObject script being 'not found'
1 Reply
Crisfole
CrisfoleOP3y ago
When I log the stub I get undefined all over:
POSTing to stub DurableObject {
name: undefined,
id: undefined
}
POSTing to stub DurableObject {
name: undefined,
id: undefined
}
On local it works fine:
POSTing to stub DurableObjectStub {
id: DurableObjectId {
name: 'develop',
[Symbol(kObjectName)]: 'PROPERTY_MAPS'
}
}
POSTing to stub DurableObjectStub {
id: DurableObjectId {
name: 'develop',
[Symbol(kObjectName)]: 'PROPERTY_MAPS'
}
}
This is a new object that I recently added, but I wrote a migration for it...and I'd kinda expect that wrangler dev would work fine. It has worked in the past... Well, no idea what I was doing wrong, but I carefully re-implemented it using my code as a reference and now it' works....
Want results from more Discord servers?
Add your server