error Error: Cannot access .fetch on the server. You cannot dot into a client module from a server component. You can only pass the imported name through. #38
this happens when I try to add the credentials page / sign up form in the app dir using vanilla js.
error Error: Cannot access .fetch on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.
at Object.get (webpack-internal:///(sc_server)/./node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js:51:15)
at eval (webpack-internal:///(sc_server)/./node_modules/next-auth-sanity/credentials.js:19:35)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(sc_server)/./node_modules/next/dist/server/future/route-modules/app-route/module.js:242:37)
this happens when I try to add the credentials page / sign up form in the app dir using vanilla js.
at eval (webpack-internal:///(sc_server)/./node_modules/next-auth-sanity/credentials.js:19:35) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async eval (webpack-internal:///(sc_server)/./node_modules/next/dist/server/future/route-modules/app-route/module.js:242:37)