How can i develop a worker locally and use a KV?

Hello,

im trying to develop my cloudflare worker locally with "wrangler dev --local". But it does not recognize my KV namespaces; so those are undefined.

Why do i need to do? Am i missing npm packages?

I also tried with env.<Namespace> and process.env.<Namespace> but those dont work either.
image.png
Was this page helpful?