You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
[example] [cli] Can't build statically rendered apps when using Next.js App router #4524
⨯ useSearchParams() should be wrapped in a suspense boundary at page "/404". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
at a (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/.next/server/chunks/951.js:109:18177)
at d (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/.next/server/chunks/951.js:109:31273)
at rz (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/.next/server/chunks/951.js:109:11151)
at n$ (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:45906)
at nI (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47681)
at nL (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:65480)
at nN (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:63111)
at nO (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:46258)
at nI (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47727)
at nI (/Users/bharatkashyap/MUI/toolpad-core-examples/tutorial/node_modules/.pnpm/next@15.0.4_@babel+core@7.26.0_react-dom@19.0.0_react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:62462)
Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
Expected behavior
Bulds successfully
Context
Running the example app
The same issue occurs when building an app created through create-toolpad-app without authentication
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Originally reported here
Hi, I've started an app with toolpad-core but I can't build it. In fact, I check that with the demo project that comes when starting an app with create toolpad-app@latest, I can't do the build either. But, I have been able to check that if I choose the project in base pages instead of app mode, I can make the build.
changed the title [-][example] [cli] Can't build apps without authentication when using Next.js App router[/-][+][example] [cli] Can't build statically rendered apps when using Next.js App router[/+]on Dec 9, 2024
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Activity
[-][example] [cli] Can't build apps without authentication when using Next.js App router[/-][+][example] [cli] Can't build statically rendered apps when using Next.js App router[/+]github-actions commentedon Dec 11, 2024
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.