blog · 14 Apr 2023
Error svelte adapater build
Fix - Error sveltejs/adapter-vercel possibly installed through sveltejs adapter-auto on stackblitz ⚡
Hello again my friend !!
And on this content we will be explain how to fix and solved svelte kit project vercel adapter.
We have project and use online IDE stacbliz, we develope project on stacblizt then integration with our github repo, after that we deploy it on vercel host.
First deploy will be find , because no issue in here…
and after long time no touch this project, so we need to update content project, after we update content article and we push commit on github repo, and automaticly vercel deploy our project.
But deploy project is failed, and we not change all code structure , just create a new content article, then deploy it.
and i see error log on vercel adapter
, we look svelte.config
is use auto adapter @sveltejs/adapter-auto
complete error log production Error: @sveltejs/adapter-vercel >=2.x (possibly installed through @sveltejs/adapter-auto) requires @sveltejs/kit version 1.5 or higher. Either downgrade the adapter or upgrade @sveltejs/kit
Solution :
- we need to update svelte project or downgrade vercel adapter
if you use stackblitz IDE so you can update on package.json
files for example like this
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "1.7.2",
"svelte": "^3.55.1",
"svelte-check": "^3.0.3",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.1.2"
Then save your package.json
files , and try deploy again on vercel for example.
and congratulations you have solved this problem, we hope this article is help you for solved Error: @sveltejs/adapter-vercel >=2.x (possibly installed through @sveltejs/adapter-auto).
Bonus content : All svelte source code project →