Make sure you have installed the SvelteKit Netlify adapter if you haven’t done so already.
npm i -D @sveltejs/adapter-netlify
Also make sure you have registered the adapter in the svelte.config.js file.
If the above does not work or you have already done the suggestions above, kindly follow the link below to see if the suggestions there helps.
The post is similar to your question asked.