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

Flagsmith: Fetch error: ReferenceError: XMLHttpRequest is not defined #1385

Closed
nvsd opened this issue Aug 13, 2022 · 3 comments
Closed

Flagsmith: Fetch error: ReferenceError: XMLHttpRequest is not defined #1385

nvsd opened this issue Aug 13, 2022 · 3 comments
Assignees

Comments

@nvsd
Copy link

nvsd commented Aug 13, 2022

When building an SSR app (locally and vercel.com) I get the error Flagsmith: Fetch error: ReferenceError: XMLHttpRequest is not defined.

I'm using nextjs with the flagsmith react project.

Please let me know if I can help further.

@dabeeeenster
Copy link
Contributor

Hi,

Please can you add as much code as possible so we can figure out what's going on? Thanks!

@nvsd
Copy link
Author

nvsd commented Aug 13, 2022

Sure!

To clarify when I say "building" I mean this is an issue at build time.
It's just a warning too so it doesn't block me or anything just slightly annoying.

To repro clone and yarn build in the below repo:
https://github.com/nvsd/flagsmith-repro

@nvsd
Copy link
Author

nvsd commented Aug 13, 2022

Whoops, I derped the repo. I'm going to move this to flagsmith-js-client. Sorry about that.

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