Question

Amplitude Logger [Error]: ReferenceError: URL is not defined

  • 4 May 2023
  • 1 reply
  • 142 views

I am currently using the Node SDK to log events, using the track() function to record user ID, event name, and other event properties. While I was able to log events successfully on my local machine, I encountered an error after pushing the code to production. I am seeking advice on how to resolve this issue, and any guidance would be greatly appreciated.


1 reply

Userlevel 2
Badge +5

Hey @Arpan Kanungo, What’s the version of node you’re working with right now? maybe it’s an issue on how you’re importing your URL, take a look at what the node docs examples show to see if that can help.

Reply