D1Database._send: Cannot read properties of undefined (reading 'fetch')

I tried D1 on the official website, but it doesn’t work

D1 does not work in the quicker editor. You need to be using wrangler locally to get D1 to work

Thank you. It was created using the wrangler cli. Is that correct?

Yeah, creating can be done through wrangler or through dashboard but they only work in dev through wrangler locally.