when using Next.js versions lower than 13, there is an issue where the viewer fails to render certain elements when rendering reports with the newPageAfter attribute.
I've found that this issue only occurs in the compiled code. You can run
Code: Select all
npm install && npm run build && npm run start
See picture below:
If i upgrade the nextjs version to 13, it can render normally after compiling and running.
I'm not sure of the exact reason behind it, but for now, we don't want to upgrade Next.js and React (which requires React version 18).
Your help would be greatly appreciated!