Skip to content

[Error: Failed to collect page data for /_not-found] { type: 'Error' } error during build #74884

Closed Answered by halilibrahimcelik
halilibrahimcelik asked this question in Help
Discussion options

You must be logged in to vote

okay, I think I found the problem. The issue is related to my sentry configuration in my next.config.ts.
I have to disable reactComponentAnnotation while building the app. Normally it is disabled by default, if you want to use this feature in the development phase, I come up with this solution

reactComponentAnnotation: {
   enabled: process.env.NODE_ENV === 'development',
 },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by halilibrahimcelik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant