#getStaticPath not a function Exception in Nextjs v13 Page Router

5 messages · Page 1 of 1 (latest)

obtuse nacelle
#
Server Error
TypeError: getStaticPaths is not a function

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
buildStaticPaths
file:///C:/Users/dhaval/Desktop/Infoskies/Code/infoskies-website-v3/node_modules/next/dist/build/utils.js (733:39)
Object.loadStaticPaths
file:///C:/Users/dhaval/Desktop/Infoskies/Code/infoskies-website-v3/node_modules/next/dist/server/dev/static-paths-worker.js (104:46)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)

I am getting this exception in my Nextjs v13.5.5 Page Router, and nowhere I am using the getStaticPath() or anything.

dusty loomBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

nimble skiff
#

can you make a reproduction repo?

obtuse nacelle
#

it's my companies Project, so I can't

#

but nowhere I am using any SSR thing like getStaticProps() or getStaticPaths() then why this error is thrown?