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

[Node]: [ReferenceError: XMLHttpRequest is not defined] #113

Open
sannajammeh opened this issue May 3, 2024 · 2 comments
Open

[Node]: [ReferenceError: XMLHttpRequest is not defined] #113

sannajammeh opened this issue May 3, 2024 · 2 comments

Comments

@sannajammeh
Copy link

sannajammeh commented May 3, 2024

We're getting [ReferenceError: XMLHttpRequest is not defined] and no logs flushed when trying to use @logtail/node. Why is logtail attempting to use XMLHttpRequest?

We are running Next.js with Node 20

@sannajammeh
Copy link
Author

You should bump cross-fetch to v4 which fixes this issue.

@curusarn
Copy link
Contributor

curusarn commented May 3, 2024

Hey @sannajammeh,

Thanks a lot for raising this!
I'm passing it on to the team. We'll get it fixed soon. We'll keep you updated here on GitHub.

Thank you for reaching out.

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