As you have the functions in netlify/function there is no need to have the functions option under [dev]. .netlify/functions is the directory netlify builds/runs functions from. See CLI documentation https://cli.netlify.com/commands/dev
And functions documentation
After changing the rollup.config.js inline with that repository, it still wouldnβt work. Svelte would start, but Netlify CLI would never load correctly on port 8888.
In the end, I changed the dependency versions in your repository to match that of the repository above and it works, making the site available on localhost:8888 and showing βResult: Hola Mundoβ
$ npm run dev
> svelte-app@1.0.0 dev
> rollup -c -w
rollup v2.73.0
bundles src/main.js β public/build/bundle.js...
LiveReload enabled on port 35747
created public/build/bundle.js in 528ms
[2022-05-15 09:23:11] waiting for changes...
> svelte-app@1.0.0 start
> sirv public --no-clear "--dev"
Your application is ready~! π
- Local: http://localhost:5000
- Network: Add `--host` to expose
ββββββββββββββββββ LOGS ββββββββββββββββββ
Just for completeness: I have re-trodden my original steps and downloaded my repo and both work without any problems. I can only assume that with my lack of confidence (I am always dubious of my understanding of Netlify functions) and a possible cache problem in the browser, I was confused