ModernLibre / ModernLibre-front

Created with StackBlitz ⚡️
https://stackblitz.com/edit/github-jl3hhx
0 stars 1 forks source link

[BUG] Unable to build #5

Closed Samuka007 closed 11 hours ago

Samuka007 commented 11 hours ago

npm run build failed. Output:

useSearchParams() should be wrapped in a suspense boundary at page "/callback". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
    at a (/workspaces/ModernLibre-front/.next/server/chunks/860.js:1:17900)
    at d (/workspaces/ModernLibre-front/.next/server/chunks/860.js:1:30998)
    at a (/workspaces/ModernLibre-front/.next/server/app/callback/page.js:1:2188)
    at nj (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:45788)
    at nO (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47563)
    at nN (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:65362)
    at nM (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:62993)
    at n$ (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:46140)
    at nO (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:47609)
    at nO (/workspaces/ModernLibre-front/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:20:62344)
Error occurred prerendering page "/callback". Read more: https://nextjs.org/docs/messages/prerender-error

cc? @xiaolin2004

Samuka007 commented 11 hours ago

fix in e2883695b918b56d7e91d75184c6ed20f83bb5ef