svelte-routing icon indicating copy to clipboard operation
svelte-routing copied to clipboard

Example not working

Open MainTobias opened this issue 3 years ago • 3 comments

I needed to cd into src/ before npm start.

MainTobias avatar Aug 08 '21 12:08 MainTobias

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...

akauppi avatar Sep 23 '21 08:09 akauppi

Works on the 2nd try 👍

akauppi avatar Sep 23 '21 08:09 akauppi

Thank you for reporting this!

Very interesting. Will take a look at this this weekend.

EmilTholin avatar Sep 24 '21 07:09 EmilTholin