Next.js Discord

Discord Forum

Undefined is not a function

Unanswered
Spectacled Caiman posted this in #help-forum
Open in Discord
Spectacled CaimanOP
https://sourceb.in/JAXPwsmQDW
Full Error:
TypeError: undefined is not a function
    at Array.every (<anonymous>)
    at /vercel/path0/.next/server/chunks/818.js:6:51375
    at Array.filter (<anonymous>)
    at /vercel/path0/.next/server/chunks/818.js:6:51079
    at Object.rQ [as useMemo] (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:31005)
    at t.useMemo (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:59:7338)
    at de (/vercel/path0/.next/server/chunks/818.js:6:51001)
    at Uploader_Uploader (/vercel/path0/.next/server/app/page.js:1:2406)
    at nh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:36421)
    at nh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:49347)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: undefined is not a function
    at Array.every (<anonymous>)
    at /vercel/path0/.next/server/chunks/818.js:6:51375
    at Array.filter (<anonymous>)
    at /vercel/path0/.next/server/chunks/818.js:6:51079
    at Object.rQ [as useMemo] (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:31005)
    at t.useMemo (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:59:7338)
    at de (/vercel/path0/.next/server/chunks/818.js:6:51001)
    at Uploader_Uploader (/vercel/path0/.next/server/app/page.js:1:2406)
    at nh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:36421)
    at nh (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:27:49347)

3 Replies

Spectacled CaimanOP
can anyone help?
Masai Lion
you need to pass in a function to array.every, did you pass in a value of undefined instead
@Masai Lion you need to pass in a function to array.every, did you pass in a value of undefined instead
Spectacled CaimanOP
na that's the whole code I cant even host it so no values are even being entered. The code works on localhost I just cant host it