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
I got an error that said dotenv using process.cwd which does not exist in the browser environment.
Is there a way to configure dotenv to avoid using node-related APIs to make this SDK work in the browser?
Or, maybe you can remove dotenv and use vite.js with:
define: {// other defines read from .env file'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV||"production"),}
The text was updated successfully, but these errors were encountered:
aztack
changed the title
How to use in browser?
How to use this SDK in browser?
May 6, 2023
Sorry for the delay, I just noticed the issue now, could you send the error here and how I can reproduce it? so I can solve the problem, also I changed dotenv to development dependency in the last release, since it is not a necessary dependency outside the dev environment, can you try to reproduce the error with the last version of the SDK?
I got an error that said dotenv using
process.cwd
which does not exist in the browser environment.Is there a way to configure dotenv to avoid using node-related APIs to make this SDK work in the browser?
Or, maybe you can remove dotenv and use vite.js with:
The text was updated successfully, but these errors were encountered: