Skip to content
Discussion options

You must be logged in to vote

I've noticed that I have a runtime JavaScript error on any route in my app, the "npm run build" fails with an error.

You might run into this if the pages use static generation as that executes the code during next build. In order to verify if a page is static we require the page and read it's exports.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pkellner
Comment options

@timneutkens
Comment options

Answer selected by pkellner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants