sveltejs/template

"Cannot get /" - 404

Daniel-Knights opened this issue ยท 2 comments

Going through the quick start docs, ran the commands to get started.

npx degit sveltejs/template my-svelte-project
cd my-svelte-project
npm install
npm run dev

Result: Your application is ready~! ๐Ÿš€

Open up localhost:5000: "Cannot get /"

Tried a couple different ways, same thing each time.

I'm using Chrome v84, macOS Mojave v10.14, latest Svelte version and Rollup.

#133 The second comment from here fixed it for me. If it's running on port 5000 and I comment out the line !production && livereload('public'), it then switches to a random port and works fine.

An actual fix (in the CLI):

lsof -i :5000

Grab the PID and kill:

kill -9 35587