Viewer render issue with nextjs version lower than 13
Posted: Tue Mar 19, 2024 7:57 am
Hi guys:
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 with the code I provided.
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!
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!