For Workes & Pages, what is the name of the domain?
What is the issue or error you’re encountering
can’t access kv namespace functions
What steps have you taken to resolve the issue?
i’ve put
kv_namespaces = [
{ binding = “macs_ns”, id = “myidhere” }
]
in wrangler.toml
I’ve put binding variable at the worker settings
I call it with env.mykv.put(1,1) and I get error
undefined (reading ‘put’)
When I did console.log(env.mykv) it actually returned the KV object in the console and it is really strange
that I couldn’t access put, get or whatever by the aforementioned error.
After 1 hour with doing nothing console.long(env.mykv) now return undefined… really really strange.