New user here. I’m receiving the following error trying to deploy a svletekit app to Vercel. The app works wonderfully on my local workstation. Any guidance on what to check/do next would be much appreciated. google is not helping me find a resolution.
error during build:
15:29:01.299
[vite]: Rollup failed to resolve import “postgres” from “/vercel/path0/src/db/index.ts”.
15:29:01.299
This is most likely unintended because it can break your application at runtime.
15:29:01.299
If you do want to externalize this module explicitly add it to
15:29:01.299
build.rollupOptions.external
dependencies from package.json:
“devDependencies”: {
“@fontsource/fira-mono”: “^5.0.0”,
“@neoconfetti/svelte”: “^2.0.0”,
“@sveltejs/adapter-vercel”: “^5.6.3”,
“@sveltejs/kit”: “^2.16.0”,
“@sveltejs/vite-plugin-svelte”: “^5.0.0”,
“@tailwindcss/forms”: “^0.5.9”,
“@tailwindcss/typography”: “^0.5.15”,
“@tailwindcss/vite”: “^4.0.0”,
“@types/pg”: “^8.15.2”,
“drizzle-kit”: “^0.31.1”,
“prettier”: “^3.4.2”,
“prettier-plugin-svelte”: “^3.3.3”,
“prettier-plugin-tailwindcss”: “^0.6.11”,
“svelte”: “^5.25.0”,
“svelte-check”: “^4.0.0”,
“tailwindcss”: “^4.0.0”,
“typescript”: “^5.0.0”,
“vite”: “^6.2.6”
},
“dependencies”: {
“drizzle-orm”: “^0.43.1”
}