-
Notifications
You must be signed in to change notification settings - Fork 20
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
AbortSignal is not defined #82
Comments
Hey @MooseSaeed it sounds like you're on node 14-, while AbortSignal is defined only in node 15+. I'll update the package node requirements 👀 |
@neilkakkar Thanks for responding. I have upgraded node version to 16.13.1 and I'm still getting the error. Maybe the issue is associated with Typescript? |
Is it exactly the same error, or is it somewhat different? Mind removing and installing |
@neilkakkar No matter what I try, I get the same same error. I uninstalled and reinstalled |
if you have an outdated version of node this polyfill worked for us until we got the update done |
so this issue has been open for almost 1 year... yet it is still not fixed? c'mon guys @posthog-bot |
@StockBet do you have a reproducible example I can try out? I'm failing to reproduce this on node 15+ |
What do you mean? How can I give you a reproducible example? my node is v20.4.0
Sent via Superhuman ( ***@***.*** )
…On Wed, Dec 20, 2023 at 6:37 AM, Neil Kakkar < ***@***.*** > wrote:
@ StockBet ( https://github.com/StockBet ) do you have a reproducible
example I can try out? I'm failing to reproduce this on node 15+
—
Reply to this email directly, view it on GitHub (
#82 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AVJW45ED4Q762ZIPKUDGYRDYKLEZHAVCNFSM6AAAAAAUTK63USVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGMZDMNJYHE
).
You are receiving this because you were mentioned. Message ID: <PostHog/posthog-node/issues/82/1864326589
@ github. com>
|
A simple project setup where it doesn't work - node + posthog installation - a github repo link works :) - pretty hard to debug if I can't tell what might be going wrong |
I finally figured out the issue. @neilkakkar Turns out Render (which I use to deploy my node server) uses 14.17.0 by default for some reason. |
I'm using Posthog node client in the backend of Nuxtjs app and I'm getting these errors in the console.
It's a simple
getAllFlags()
attempt where i'm initializing the client in a Typescript Singleton object. It successfully returns the flags values on page load, but the problem is that I keep getting the above error on each page refresh.The text was updated successfully, but these errors were encountered: