Closed ajayvignesh01 closed 9 months ago
Yes, getting all of those exact errors as well. also getting missing encoding error
For that error, pretty easy fix, it's just a missing dependency.
On local: add the following to dependencies in package.json, then run 'pnpm install', and push to deploy. This should remake the pnpm-lock.yaml file to also include the encoding dependency.
"encoding": "^0.1.13"
Ok, I figured out a fix for the Dynamic Error Server Error.
Add the following line after the imports to your app/page.tsx & app/signin/page.tsx
export const dynamic = "force-dynamic"
Still unresolved errors: Error, 2, 3, 4 as listed in the main post above.
I am having this exact same issue.
I am getting all these errors when deploying the Stripe Subscription Starter template from Vercel. I set up all the environment variables correctly and the website is working, but why are all these errors popping up. A similar issue was present in the with-supabase template, and a contributor helped fix it (https://github.com/vercel/next.js/discussions/52913). Maybe that might help in resolving this. I'm not too familiar with frontend yet to troubleshoot.
I am also getting the following when testing locally using npm dev run. I think it might be sort of due to the above?
And, in the app/layout.tsx file, the following errors are showing up (the website still runs though). Not sure if this is also related to the above.
Lastly: