You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the stack trace and found that there was a problem with the code in /.next/server/chunks.
var userPageModule = constants_sentry_wrapped_namespaceObject;
var pageComponent = userPageModule.default;
var origGetInitialProps = pageComponent.getInitialProps;
sample_styles_sentry_wrapped_namespaceObject had the following comments:
@ccj9707 Thanks for reporting this! In the meanwhile to get your stuff working again, you can set autoInstrumentServerFunctions: false in your Next.js config.
We didn't really consider custom page extensions when building this feature but we'll try to get a fix out asap.
Discussed in #5876
Originally posted by ccj9707 October 4, 2022
Hello. My project is based on nextjs, and the
pages/
directory structure is as follows.I am using the custom page extensions feature of nextjs.
https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions
When I tried to build the project after adding sentry/nextjs through the wizard, the following error occurred.
I followed the stack trace and found that there was a problem with the code in /.next/server/chunks.
sample_styles_sentry_wrapped_namespaceObject
had the following comments:It looked like there was no getInitialProps because it wasn't a page component.
The text was updated successfully, but these errors were encountered: