-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error accessing params and queryparams when browser script injected into NextJs v15 app #1358
Comments
Relevant changes in Next v15: https://nextjs.org/docs/messages/sync-dynamic-apis |
I'm on version |
This issue may be related symfony/ux#2537 If you have an html element with a property containing an object that has dynamic methods, when you click the element, the element gets passed to newrelic stringify and calls toJSON on the element.__component. In the case of symfony live components, element.__component.toJSON() makes an ajax request and you get an error that the toJSON live action does not exist. |
@metal-messiah reproduction here: https://github.com/a88zach/issue-1358 |
Description
When using Nextjs v15, errors are thrown with accessing params and query params
Steps to Reproduce
Add newrelic to a NextJs v15 app
Follow this article to inject the browser script https://newrelic.com/blog/how-to-relic/how-to-monitor-app-based-router-nextjs-application
Start the application and click anywhere on the page once loaded
reproduction: https://github.com/a88zach/issue-1358
Expected Behavior
Relevant Logs / Console output
The text was updated successfully, but these errors were encountered: