Hey guys! I’m having trouble with the Node SDK. I’...
# support
q
Hey guys! I’m having trouble with the Node SDK. I’m getting the following issues: 1. Using @rudderstack/rudder-sdk-node version 2.0.2 2. Node v16.x 3. Errors that “regenerator-runtime” aren’t defined. So I added import “regenerator-runtime/runtime”; Now I’m stuck…
Copy code
error - TypeError: axiosRetry is not a function
    at new Analytics (webpack-internal:///(sc_server)/./node_modules/@rudderstack/rudder-sdk-node/index.js:154:13)
I don’t know what workaround I can do for that. Any advice?
I tried the following in a Node terminal:
Copy code
const Analytics = require("@rudderstack/rudder-sdk-node");

const client = new Analytics("2O9vE27siYAH10YcW7QvJBVxRQM", {
  dataPlaneUrl: "https://fforwardcmkas.dataplane.rudderstack.com",
});

client.track(
  {
    event: "User Signed Up",
    userId: "0ca42bdf-f7a2-4467-acec-56c6954f5b8f",
  },
  () => {
    console.log("done tracking");
  }
);
And I see “done tracking” and saw the event tracked in the Rudderstack live console.
I’m moving to use the http API instead since I can’t figure it out :shrug
k
Hey @quick-apartment-49614, Were you able to resolve the
error - TypeError: axiosRetry is not a function
issue ? Because in the second message, I can see that you were able to successfully send events to Rudderstack, but again you mentioned that you were switching to Http API. We can definitely help you on this and get it sorted.
CC <!subteam^S04QT1G74Q3|@sdk-team>
Tagging @high-zoo-17436 from the team to help you get this sorted