Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statsig in Node.js #29

Open
akunap2 opened this issue Aug 29, 2022 · 4 comments
Open

Statsig in Node.js #29

akunap2 opened this issue Aug 29, 2022 · 4 comments

Comments

@akunap2
Copy link

akunap2 commented Aug 29, 2022

Hi,

Our backend setup is SST(severlessstack) in NodeJS deployed to AWS Lamnda. We get this error when we try to setup statsig in it - ERROR statsigSDK::sync> Failed while attempting to sync values: fetch is not defined

Can you tell us how to address it please.

@tore-statsig
Copy link
Contributor

Hi - I dont see any error there, did you mean to share something?

@akunap2
Copy link
Author

akunap2 commented Aug 29, 2022

ERROR statsigSDK::sync> Failed while attempting to sync values: fetch is not defined

@tore-statsig
Copy link
Contributor

What version of node are you using? Can you try using Node 18?

@tore-statsig
Copy link
Contributor

I think another workaround would be to use node-fetch. https://stackoverflow.com/questions/48433783/referenceerror-fetch-is-not-defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants