svelte-routing
svelte-routing copied to clipboard
Example not working
I needed to cd into src/ before npm start.
Steps:
- follow the documented steps
Expecting
Example to be hosted in localhost:3000
Actual
rollup v2.57.0
bundles src/main.js → public/bundle.js...
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './public/App.js'
Require stack:
- /Users/asko/Sources/svelte-routing/example/server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/Users/asko/Sources/svelte-routing/example/server.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/asko/Sources/svelte-routing/example/server.js' ]
}
[nodemon] app crashed - waiting for file changes before starting...
LiveReload enabled
created public/bundle.js in 803ms
bundles src/App.svelte → public/App.js...
created public/App.js in 220ms
[2021-09-23 11:44:43] waiting for changes...
Works on the 2nd try 👍
Thank you for reporting this!
Very interesting. Will take a look at this this weekend.