Skip to content

Next build v15.1.4: Unable to run next build - "Error occurred prerendering page "/page". Read more: https://nextjs.org/docs/messages/prerender-error" #74858

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

You must be logged in to vote

OK! So, a little background followed by "the answer"...

Background

TSX/JSX Files, HTML Render Templates in Our Project

Our project is intended to be an API server ONLY. We only intentionally serve ONE HTML page on the frontend: the index page which can be reached directly from https://our-domain.com - the HTML on this page only verifies that the server is running:

We do have ONE *.tsx files that is used to render an HTML page which we feed to Puppeteer in order to generate a download-able PDF file. That's it. All other *.tsx files are related this functionality and only exist because I've found that they need to in order for the project to compile successfully:

  1. src/app/layout.tsx
  2. src/ap…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@anandkkpr
Comment options

Comment options

You must be logged in to vote
1 reply
@anandkkpr
Comment options

Comment options

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