Hi all, I’m pretty weirded out by this error, but I’m deploying a SvelteKit project to Vercel. It successfully builds, then I’m getting the following error on runtime. I’ve tried:
- using the Vercel adapter
- using the auto adapter
- clearing and reinstalling my node_modules
- versions 16, 18, and 20 of node
Any thoughts?
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sveltejs/kit' imported from /var/task/.svelte-kit/vercel-tmp/index.js
at packageResolve (node:internal/modules/esm/resolve:858:9)
at moduleResolve (node:internal/modules/esm/resolve:931:18)
at moduleResolveWithNodePath (node:internal/modules/esm/resolve:1173:14)
at defaultResolve (node:internal/modules/esm/resolve:1216:79)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.