Cannot extend an interface 'DurableObject'. Did you mean 'implements'?
I have this
tsconfig.json:
This is all I'm trying to do right now with my Durable Object:
And my wrangler config is pretty simple:
For some reason, I get this error out:
So that's odd. Haven't had this issue in other projects with Durable Objects, and it seems like it's never been documented here or anywhere else.3 Replies
oh wow i've not had a big smart moment have i
should have done
import { DurableObject } from 'cloudflare:workers' first
that's why it didn't workSup Shroom
I had to add this path to
tsconfig: