Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export encountered errors on following paths: /page: / #1

Open
reblox01 opened this issue Jul 7, 2024 · 0 comments
Open

Export encountered errors on following paths: /page: / #1

reblox01 opened this issue Jul 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested

Comments

@reblox01
Copy link
Owner

reblox01 commented Jul 7, 2024

when i try to run npm run build or deploy the app into vercel i get those errors:

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
   Collecting page data ...
   Generating static pages (0/11) ...
   Generating static pages (2/11) 
   Generating static pages (5/11) 
Error: Error: Dynamic server usage: Route / couldn't be rendered statically because it used `searchParams.userId`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
    at i (/vercel/path0/.next/server/app/page.js:1:6092)
    at v (/vercel/path0/.next/server/app/page.js:1:6988)
    at eh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786)
    at e (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671)
    at ek (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145)
    at Array.toJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755)
  digest: '1958422608'
}
Error: Error: Dynamic server usage: Route / couldn't be rendered statically because it used `searchParams.userId`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
    at i (/vercel/path0/.next/server/app/page.js:1:6092)
    at v (/vercel/path0/.next/server/app/page.js:1:6988)
    at eh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786)
    at e (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671)
    at ek (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145)
    at Array.toJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755)
    at stringify (<anonymous>)
    at eP (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142219)
    at eE (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142698)
    at Timeout._onTimeout (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135475) {
  digest: '2128528698'
}
Error: Error: Dynamic server usage: Route / couldn't be rendered statically because it used `searchParams.userId`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
    at i (/vercel/path0/.next/server/app/page.js:1:6092)
    at v (/vercel/path0/.next/server/app/page.js:1:6988)
    at eh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786)
    at e (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671)
    at ek (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145)
    at Array.toJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755)
    at stringify (<anonymous>)
    at eP (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142219)
    at eE (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142698)
    at Timeout._onTimeout (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135475) {
  digest: '2128528698'
}
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Error: Dynamic server usage: Route / couldn't be rendered statically because it used `searchParams.userId`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
    at i (/vercel/path0/.next/server/app/page.js:1:6092)
    at v (/vercel/path0/.next/server/app/page.js:1:6988)
    at eh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786)
    at e (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671)
    at ek (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145)
    at Array.toJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755)
    at stringify (<anonymous>)
    at eP (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142219)
    at eE (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142698)
    at AsyncLocalStorage.run (node:async_hooks:346:14)
   Generating static pages (8/11) 
 ✓ Generating static pages (11/11)

> Export encountered errors on following paths:
	/page: /
Error: Command "npm run build" exited with 1
@reblox01 reblox01 added bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested labels Jul 7, 2024
@reblox01 reblox01 self-assigned this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant