Open Pranav2111 opened 1 week ago
@Pranav2111 we need more information to go on. What version of the agent are you using? Is this the NPM package or how is the agent installed? What version of node, npm, nextjs, etc? Drop a copy of your package.json and code where you are instrumenting the agent if it is the npm package. Whats the stack trace for the error? Please provide as much detail as possible when reporting issues to open source projects. Thanks.
We also started seeing this error. The first instance happened on 2024-06-26 04:48:04 pm PDT, which coincides with the latest release - https://github.com/newrelic/newrelic-browser-agent/releases/tag/v1.261.1
It happens in a browser. Here's what we're seeing:
Uncaught TypeError: Cannot read properties of undefined (reading 'stopTimer')
at
T.abort(https://js-agent.newrelic.com/nr-spa-1.261.1.min.js:2:65690)
at
n.<anonymous>(https://js-agent.newrelic.com/nr-spa-1.261.1.min.js:2:61759)
We had another report of this same issue, and I suspected the area of source of it, but thank you for giving us the trace to confirm!
We are encountering the same issue, which started to happen on June 27 in our React App.
We have been encountering the same issue since June 28 in Angular 17 app.
T.abort https://js-agent.newrelic.com/nr-spa-1.261.1.min.js at line 2 : 65690
n.<anonymous>in https://js-agent.newrelic.com/nr-spa-1.261.1.min.js at line 2 : 61759
Object.emit inline code at line 37 : 9898
anonymous https://js-agent.newrelic.com/nr-spa-1.261.1.min.js at line 2 : 94242
The same error appears for the nr-spa.1.261.2 started 27 of June as well
this error is going alongside with undefined is not an object (evaluating 'this.scheduler.stopTimer')
error as well which happens in Chrome and Safari on Mac only.
i guess line 208 in the unminified code should be this.scheduler?.stopTimer()
?
We've been getting this error sporadically starting June 27 at 3:34 AM US/Central. (Didn't seem high priority given the low % of page loads it was happening on.)
Unhandled error
TypeError: Cannot read properties of undefined (reading 'stopTimer')
Location
https://js-agent.newrelic.com/nr-spa-1.261.1.min.js:2 - T.abort
Today we started getting this slightly different message:
Unhandled error
TypeError: this.scheduler is undefined
Location
https://js-agent.newrelic.com/nr-spa-1.261.2.min.js:2 - abort
we need more information to go on. What version of the agent are you using?
Just newrelic_rpm (9.8.0)
Is this the NPM package or how is the agent installed? What version of node, npm, nextjs, etc?
nodejs 16
yarn 1.22
Although, any tooling is being injected by newrelic_rpm
which we installed ~3 months ago at v 9.8.0. (We'll look at updating it to 9.11 this week, but that seems unrelated in our case)
I am using browser agent for my Next JS application. I am getting this error (Cannot read properties of undefined (reading 'stopTimer')) reported on my sentry very frequently.