Upgrading NextJS to v 15
Hello everyone, I have upgraded to Nextjs 15 with Chodemod and now nextjs is giving me tons of errors.
at async Server.requestListener (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/src/server/lib/start-server.ts:146:6)
138 | req = {
139 | headers: Object.fromEntries(headers()),
140 | cookies: Object.fromEntries(cookies().getAll().map(c => [c.name, c.value]))| ^ 141 | }; 142 | res = { 143 | getHeader() {}, or the one here at async AppRouteRouteModule.do (webpack://next/dist/src/server/route-modules/app-route/module.ts:529:14) 72 | query, 73 | cookies: Object.fromEntries(cookies().getAll().map(c => [c.name, c.value])),
74 | headers: Object.fromEntries(headers()),| ^ 75 | method: req.method, 76 | action: nextauth === null nextauth === void 0 ? void 0 : nextauth[0], 77 | providerId: nextauth === null nextauth === void 0 ? void 0 : nextauth[1], Is there a simple solution for this or a better way to get my t3 app on nextjs 15?
1 Reply
why upgrade