-
Describe the bugnew package.json after updating svelte4{ old package.json{ Reproductionupdate svelte 1.5.0 to svelte 4, i have attached the old and new package.json files. Logsnpm ERR! While resolving: @sveltejs/[email protected]
10:34:15.959 npm ERR! Found: @sveltejs/[email protected]
10:34:15.959 npm ERR! node_modules/@sveltejs/kit
10:34:15.960 npm ERR! dev @sveltejs/kit@"^1.20.4" from the root project
10:34:15.960 npm ERR! peer @sveltejs/kit@"^1.15.2" from @supabase/[email protected]
10:34:15.960 npm ERR! node_modules/@supabase/auth-helpers-sveltekit
10:34:15.960 npm ERR! @supabase/auth-helpers-sveltekit@"^0.9.4" from the root project
10:34:15.961 npm ERR! 1 more (@sveltejs/adapter-auto)
10:34:15.961 npm ERR!
10:34:15.961 npm ERR! Could not resolve dependency:
10:34:15.961 npm ERR! peer @sveltejs/kit@"^2.4.0" from @sveltejs/[email protected]
10:34:15.961 npm ERR! node_modules/@sveltejs/adapter-vercel
10:34:15.962 npm ERR! dev @sveltejs/adapter-vercel@"^5.1.0" from the root project
10:34:15.962 npm ERR!
10:34:15.962 npm ERR! Conflicting peer dependency: @sveltejs/[email protected]
10:34:15.962 npm ERR! node_modules/@sveltejs/kit
10:34:15.962 npm ERR! peer @sveltejs/kit@"^2.4.0" from @sveltejs/[email protected]
10:34:15.962 npm ERR! node_modules/@sveltejs/adapter-vercel
10:34:15.963 npm ERR! dev @sveltejs/adapter-vercel@"^5.1.0" from the root project
10:34:15.963 npm ERR!
10:34:15.963 npm ERR! Fix the upstream dependency conflict, or retry
10:34:15.963 npm ERR! this command with --force or --legacy-peer-deps
10:34:15.963 npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 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: 3 comments 3 replies
-
Downgrade adapter-vercel to version 3, or use |
Beta Was this translation helpful? Give feedback.
-
Thanks @dummdidumm, this did resolve the peer dependencies issue but after Bug log import pkg from 'dayjs'; import pkg from 'dayjs'; |
Beta Was this translation helpful? Give feedback.
-
changed from |
Beta Was this translation helpful? Give feedback.
changed from
import { Dayjs } from 'dayjs'
to
import { type Dayjs } from 'dayjs'
type
keyword was missing which was causing the issue.