TypeError: client.on is not a function, SDK won't initialize
I don't think anything changed on my end and in the past 24h, I'm getting "TypeError: client.on is not a function". It seems "client" returns "false" after initialization ("ZAFClient.init();")
I see the same error even if I start from scratch in a fresh folder: (from ZD quick start guide)
"npx @zendesk/zcli apps:new"
I tried all major browsers with the same results.
Is there a known issue? I don't see anything on the status page
-
I now see there was an incident that seems related.
The error still show and I'm unable to develop my app
-
Hi Yosef Cohen
I’ve tested the client.on method on my end and it appears to be functioning as expected. Are you initializing the ZAF client object before accessing the methods?
-
Heya,
So it looks like the reason for the issue was that my npm/node version was outdated. Once updated, it got back to life.
Thanks,
Please sign in to leave a comment.
4 Comments