You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unhandled error in the function code triggered the following message:
[TypeError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) - server.init is not a function
Stack trace
TypeError: server.init is not a function
at init2 (/var/task/.netlify/functions-internal/render.js:28618:10)
at Object.<anonymous> (/var/task/.netlify/functions-internal/render.js:28668:15)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/var/task/render.js:1:18)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
i've used Svelte on Netlify many times, but I'm testing sveltekit out for the first time and I'm getting this error from netlify.
Reproduction
None.
Logs
No response
System Info
Netlify.
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Using @sveltejs/adapter-netlify@1.0.0-next.70 made this error go away, so I think this specific issue might have been introduced in @sveltejs/adapter-netlify@1.0.0-next.71
We need to have an actual reproduction and to know what versions of dependencies you are on. If you updated to the latest version of the Netlify adapter without updating to the latest version of the main @sveltejs/kit package, this error is expected.
Thanks for your answers and suggestions, in the end it came down to the sveltekit app i created not too long ago was outdated, I updated the entire app to the latest sveltekit and it now builds on netlify. I first noticed the issue by remove the lock file and re-install, the error then said vice is not found and that's when I got the light-bulb moment.
Describe the bug
Deploying sveltekit to netlify and following these instructions,https://docs.netlify.com/integrations/frameworks/sveltekit/#deployment, produce the following error:
i've used Svelte on Netlify many times, but I'm testing sveltekit out for the first time and I'm getting this error from netlify.
Reproduction
None.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: