Cannot read properties of r2

I am trying to interact with r2 bucket from a worker.

But I get this error
[wrangler:err] TypeError: Cannot read properties of undefined (reading 'get')


Yes, I have already bind the bucket inside
wrangler.toml
file
Was this page helpful?