-
Notifications
You must be signed in to change notification settings - Fork 9
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
Research and fix issues with Next.js 14 #1014
Comments
The customer reports that calls to Next.js |
The customer also ran into an issue when importing AppSignal's helpers from Next.js code, where Webpack fails to bundle AppSignal:
See #114. The solution might be to ask customers to add us to the |
Another customer (Intercom) reported an "AppSignal not starting, no valid configuration found" error, which is not of the same nature as the above issues, but should also be looked into. |
Finally got around to start testing this. Ran into the Webpack bundling issue head-on, and I was able to fix it using the |
The `@appsignal/nodejs` instrumentation package fails to load in Next.js 14 due to Webpack failing to bundle its Node.js native extension. Adding it to the server components external packages list fixes this issue. Fixes appsignal/appsignal-nodejs#1014.
Sent a PR to Vercel to add Reproduced the issue with the |
I was not able to reproduce server-side calls performed with |
Released the fix in https://github.com/appsignal/appsignal-agent/pull/1129 as AppSignal for Node.js 3.3.3 -- this, however, resulted in incorrect behaviour when using the Pages Router. I have done a "soft rollback" by resetting the The The |
The `@appsignal/nodejs` instrumentation package fails to load in Next.js 14 due to Webpack failing to bundle its Node.js native extension. Adding it to the server components external packages list fixes this issue. Fixes appsignal/appsignal-nodejs#1014.
I am not able to reproduce the issues that the customer using the Pages Router experienced. I have undone the "soft rollback" and A third customer (Intercom) has reported an issue where, when running Next.js (App Router) in production, errors emitted while rendering server components are intentionally obscured by Next.js itself. |
The `@appsignal/nodejs` instrumentation package fails to load in Next.js 14 due to Webpack failing to bundle its Node.js native extension. Adding it to the server components external packages list fixes this issue. Part of appsignal/appsignal-nodejs#1014.
I was able to reproduce the issue with |
A customer (Intercom link) has reported high cardinality action names after upgrading to 3.3.4. It seems that traces that should be ignored (because they do not have a proper root name) are not being properly ignored. |
This is a message from the daily scheduled checks. |
Struggling to fix this error when trying to instrument a Next.js 14 application, app router based. Versions
Error
next.config.js
|
It seems to be related to #928 |
Hi @fabiolnm, Thank you for reporting this issue. Setting Could you check whether removing the custom Could you also check whether adding |
Same error with:
trace
|
TLDRLoader changes the nature of the error to other never-ending next.config.js
Can't resolve 'package_name' errors
Trying to fix by installing packages
Zlib
Also have to add a resolver alias to webpack config
Errors never end
|
On @fabiolnm's issue above, in case someone else runs into it: make sure that, in Everything else is being looked at, so I am closing this issue for now. If you're encountering any issues with Next.js 14, please reach out to us at |
Intercom: https://app.intercom.com/a/inbox/yzor8gyw/inbox/admin/5246522/conversation/16410700308049?view=List
Customer is using Next.js 14.1.3. Performance samples are reported as
UNKNOWN /some-path
-- indicating thathttp.method
is not provided in the span that is treated as the root span.We should research what's going on and fix it.
To do
(this is updated with issues from the comments below)
UNKNOWN
HTTP methodrender
/getServerSideProps
HTTP methodfetch
not being instrumentedfetch
when using the Pages router), updated docsThe text was updated successfully, but these errors were encountered: