Unhandled Runtime error
Sudipta013 opened this issue · 0 comments
Unhandled Runtime Error
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
{listeners: Set, subscribe: function, config: ..., queries: ..., queriesMap: ...}
^^^^^^^^
Call Stack
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:455033)
QueryCache.toJSON
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:455797)
stringify
st
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:460079)
lt
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:460478)
ct
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:460897)
Timeout._onTimeout
file:///C:/Users/SUDIPTA%20PAUL/OneDrive/Desktop/Projects/chatpdf-yt/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (1:458100)
listOnTimeout
node:internal/timers (573:17)
process.processTimers
node:internal/timers (514:7)