Build breaking on vercel due to @sveltejs/adapter-vercel peer dependency issue #11965
-
Describe the bugAfter migrating to sveltekit 2, it was getting deployed successfully but suddenly now i'm getting peer dependency issue for @sveltejs/adapter-vercel. Here is the list of packages i'm using."@sveltejs/adapter-vercel": "^4.0.0", ReproductionI'm going to paste all packages here, in case of reproduction of this bug.
Logsnpm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @supabase/[email protected]
npm ERR! Found: @sveltejs/[email protected]
npm ERR! node_modules/@sveltejs/kit
npm ERR! dev @sveltejs/kit@"^2.0.0" from the root project
npm ERR! peer @sveltejs/kit@"^2.0.0" from @sveltejs/[email protected]
npm ERR! node_modules/@sveltejs/adapter-vercel
npm ERR! dev @sveltejs/adapter-vercel@"^4.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @sveltejs/kit@"^1.15.2" from @supabase/[email protected]
npm ERR! node_modules/@supabase/auth-helpers-sveltekit
npm ERR! @supabase/auth-helpers-sveltekit@"^0.9.4" from the root project System InfoI'm encountering an build failure during Vercel deployment, even though my application runs perfectly on localhost development. The "error log" pasted above is available for reference. Severityblocking an upgrade Additional InformationCan you help me identify and resolve the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I've transferred your issue to discussions as this is a more appropriate place for it. The problem is explained in the error logs:
This says that the Fortunately, there is a newer version of the superbase dependency that supports SvelteKit 2. You'll need to update to a later version https://www.npmjs.com/package/@supabase/auth-helpers-sveltekit?activeTab=readme (latest version is 0.12.0). You can read about the supabase package's peer dependencies (other packages and versions it requires) in it's |
Beta Was this translation helpful? Give feedback.
Hi, I've transferred your issue to discussions as this is a more appropriate place for it.
The problem is explained in the error logs:
This says that the
@supabase/[email protected]
supabase dependency requires@sveltejs/kit@"^1.15.2"
, that is SvelteKit 1, but your project has installed SvelteKit 2.Fortunately, there is a newer version of the superbase dependency that supports SvelteKit 2. You'll need to update to a later version h…