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
{{ message }}
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
I have just created a fresh svelte project on my MacBook Pro. I have Node.js installed. When I run npm run dev it generates the usual messages in terminal with not errors. When I go on localhost:5000 there is no document body on safari and I get, Access to Localhost was Denied, HTTP Error 403 on chrome. This does not happen to any other of my node sites on react, express or any other framework, only svelte does this.
Reproduction
I have no error, I just run npx degit sveltejs/template my-project then cd into my-project, run npm install and npm dev. Then I simply go on my browser, safari or chrome and access http://localhost:5000.
Logs
There are no console logs and the server logs:
svelte-app@1.0.0 dev /Users/gregory/svelte-projects/russian-orthodox-church
> rollup -c -w
rollup v2.56.3
bundles ./src/main.js → public/build/bundle.js...
LiveReload enabled
created public/build/bundle.js in 225ms
[2021-09-05 13:17:14] waiting for changes...
> svelte-app@1.0.0 start /Users/gregory/svelte-projects/russian-orthodox-church
> sirv public --no-clear "--dev"
Your application is ready~! 🚀
- Local: http://localhost:5000
- Network: Add `--host` to expose
────────────────── LOGS ──────────────────
I have resolved the issue by changing the port from 5000 to 3000. It appears that port 5000 is a reserved port by macOS services, so that even when they are not running they are not allowed to be accessed or used by other apps. A simple fix for this could be just to change the port, or to add a separate template for MacOS with all of the filepaths starting with ./ as well. Just a thought.
Describe the bug
I have just created a fresh svelte project on my MacBook Pro. I have Node.js installed. When I run
npm run dev
it generates the usual messages in terminal with not errors. When I go on localhost:5000 there is no document body on safari and I get, Access to Localhost was Denied, HTTP Error 403 on chrome. This does not happen to any other of my node sites on react, express or any other framework, only svelte does this.Reproduction
I have no error, I just run
npx degit sveltejs/template my-project
thencd
into my-project, runnpm install
andnpm dev
. Then I simply go on my browser, safari or chrome and access http://localhost:5000.Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: