Amplitude-JavaScript
Amplitude-JavaScript copied to clipboard
logEvent callback is not working in 6.2.0
Hi, seems like there is an error in callbacks.. to reproduce:
amplitude.getInstance().logEvent("Event Name", null, (s,b)=>console.log(s,b))
Install: "amplitude-js": "6.2.0",
Nothing is written in the console.
Then downgrade to 6.1.0: "amplitude-js": "6.1.0",
It work as expected.
I'm using nextjs/react and going toward a custom server that doesn't reply "success" atm. That might have something to do with it?
Hey @mijohansen, I am unable to reproduce this issue in v6.2.0
. We have rolled out new versions since v6.2.0
. Are you still seeing this issue on more recent releases?
Closing due to inactivity.
Please update to the latest SDK which likely resolves this issue. Thanks! https://www.docs.developers.amplitude.com/data/sdks/browser-2/migration/