tRPC or next-auth error
Hey guys, having a bit of trouble with tRPC. I created a new entity in prisma, migrated it, made a new router for that entity(business), and added it onto appRouter. When I make a call to it
createBusiness.mutate({ name, abn, address, email }) , I get this error:
Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Error: Failed to load external module next-auth: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/root/capstone-project-25t3-3900-w12a-date/node_modules/next/server' imported from /root/capstone-project-25t3-3900-w12a-date/node_modules/next-auth/lib/env.js Did you mean to import "next/server.js"? at async (.next/server/chunks/[root-of-the-server]__ea5a0ea0._.js:133:13)
I have went down this big rabbit hole of nextjs and nextauthjs being out of sync, but it doesn't seem like it is. I have no idea how to resolve this, has anyone else encountered this before?1 Reply
Can you share more info?