DEV Community

Saurabh Deshmukh
Saurabh Deshmukh

Posted on

I am trying to build and deploy next js applicaiton but it will give me error as dynamic routes error generatestaticParams().

Build error occurred
Error: Page "/checklist/[checklistid]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

at C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\build\index.js:1012:59
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Span.traceAsyncFn (C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\trace\trace.js:140:20)
at async Promise.all (index 6)
at async C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\build\index.js:892:17
at async Span.traceAsyncFn (C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\trace\trace.js:140:20)
at async C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\build\index.js:829:124
at async Span.traceAsyncFn (C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\trace\trace.js:140:20)
at async build (C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\build\index.js:187:29)
at async main (C:\Deploy PTass\PTaas\frontend\node_modules\next\dist\bin\next:150:5)
Collecting page data .

Top comments (0)