You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is a Typescript library issue and not an underlying Cloudflare API issue
This is an issue with the Typescript library
Describe the bug
Hi,
I'd like to read the environment variables (not the secrets) from a worker script via the SDK. The docs say I have to call client.workers.scripts.scriptAndVersionSettings.get and the response should have a bindings prop. But TS says: Property 'scriptAndVersionSettings' does not exist on type 'Scripts' The runtime says the same: TypeError: Cannot read properties of undefined (reading 'get'). Using latest SDK version 4.2.0.
Confirm this is a Typescript library issue and not an underlying Cloudflare API issue
Describe the bug
Hi,
I'd like to read the environment variables (not the secrets) from a worker script via the SDK. The docs say I have to call client.workers.scripts.scriptAndVersionSettings.get and the response should have a bindings prop. But TS says: Property 'scriptAndVersionSettings' does not exist on type 'Scripts' The runtime says the same: TypeError: Cannot read properties of undefined (reading 'get'). Using latest SDK version 4.2.0.
Any ideas?
To Reproduce
Code snippets
OS
macOS
Runtime version
5.8.3
Library version
v4.2.0
The text was updated successfully, but these errors were encountered: