Open rendall opened 1 year ago
Thanks for the report. I think the issue here is that we are incorrectly assuming that Svelte will always use a dev server. We will fix that, but in the meantime you can work around it by adding the following to a netlify.toml
:
[dev]
framework="#static"
...which will stop it making assumptions about your dev server. If you want, you could also add command = "yarn watch"
Thanks for the workaround (and also for the title change 🙈)!
This workaround worked as expected, serving the separately-built svelte frontend.
💯 🆗 👌🏻 🙏🏻
Thank you!
Describe the bug
Adding Svelte to an already existing project causes
netlify dev
to misbehave. It looks for and fails to find a "framework server" attargetPort 5000
.Without Svelte
netlify dev
returns:while the same project with only a svelte dependency gets:
Configuration
and
netlify -v
gets us:Pull requests
https://github.com/rendall/simple-comment/pull/72/files
No PRs (yet), but this link shows the diff between the working
without-svelte
branch and the not-workingwith-svelte
branch. As is clear, the only real addition is svelte.yarn build
does output svelte. The only issue here is that thenetlify-cli
frontend server does not start and then exits.