After completing the setup and replacing the required files and code, the application starts successfully using npm run start and launches at http://localhost:3000.
We are using Next.js version 16, in which the default routing system is available.
While setting up the Next.js SDK, the framework provides multiple configuration options. We have tried all the available options, but the same issue continues to occur.
We have attached the following screenshots for reference:
Next.js CLI command
Successful Next.js installation
package.json
npm run build output
Network tab (issue observed when navigating to /portal)
@hemalathag8810 There is an issue with NextJS 16 we are seeing locally hen trying your issues. Engineer is working on the prototype with Next JS 16 and will share the expert circle post here. Also can you confirm if you are using Next JS 16?
Can you please share the Next.js folder structure for integrating the Pega React SDK? Are we looking for portal/page.tsx under the app directory for /portal, and embedded/page.tsx for /embedded? When setting up Next.js, we don’t get these pages in the folder structure. Do we need to create them manually? If yes, what code should be inside?