Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joelparkerhenderson/8777e29e901376c34809627a884232c8 to your computer and use it in GitHub Desktop.
Save joelparkerhenderson/8777e29e901376c34809627a884232c8 to your computer and use it in GitHub Desktop.
Svelte failure on new project
Error report when "npm run dev" fails, and shows sirv source code file.
When I try Svelte on an older project of mine, that shows "Hello world", the same sirv problem happens, but with a twist.
The project is:
https://github.com/joelparkerhenderson/demo_svelte_hello_world
When I use the "localhost" URL below, the error happens, and shows the sirv source code file.
When I use the "192.168.100.219" URL below, the page shows "Hello world" as expected.
###
rollup v0.58.2
bundles src/main.js → public/bundle.js...
┌─────────────────────────────────────────────────────┐
│ │
│ Serving! │
│ │
│ - Local: http://localhost:5000 │
│ - On Your Network: http://192.168.100.219:5000 │
│ │
│ Copied local address to clipboard! │
│ │
└─────────────────────────────────────────────────────┘
created public/bundle.js in 198ms
[2020-02-12 20:26:33] waiting for changes...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment