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
Direct calls to the global process object looking for an API key in the AbstractClient
Steps to reproduce
Run it in an environment without process
Expected behavior
Gracefully ignore the process object if it does not exist.
Please tell us about your environment
I've included @deepgram/sdk into a TypeScript SDK that compiles out for web and node environments. When using the SDK in a web environment, the app throws an error because process.env doesn't exist; I'd imagine you'd run into that for import.meta environments as well, like Vite.
Other information
I added a polyfill for it in my sdk for the time being.
What is the current behavior?
Direct calls to the global
process
object looking for an API key in the AbstractClientSteps to reproduce
Run it in an environment without
process
Expected behavior
Gracefully ignore the
process
object if it does not exist.Please tell us about your environment
I've included
@deepgram/sdk
into a TypeScript SDK that compiles out for web and node environments. When using the SDK in a web environment, the app throws an error becauseprocess.env
doesn't exist; I'd imagine you'd run into that forimport.meta
environments as well, like Vite.Other information
I added a polyfill for it in my sdk for the time being.
The text was updated successfully, but these errors were encountered: