Building for Sveltekit has recently begin encountering this strange error - even for redepoyments of previously successfully deployed commits:
TypeError: builder.hasServerInstrumentationFile is not a function
Is this a known issue? It began occurring this afternoon.
3 Likes
Same issue here, bump like hell man
1 Like
Same bug for me, first encountered around 4:30pm PST. Bump!
I have a fix , seems the adapter/vercel 5.9 package isn’t compatible with svelte kit 2.x.x. Try specifying adapter/vercel 5.8.
npm i -D @sveltejs/adapter-vercel@5.8.2
then modify your svelte.config.js to use the previous vercel adapter version if it doesn’t already and depends on the deploy time install.
import adapter from ‘@sveltejs/adapter-vercel’;
3 Likes
this didn’t work for me at first but later I changed my node version to 22.14.0 and then it worked. Thanks Hughlong.