pixelmund / svemix-example

11 stars 2 forks source link

Broken Routes #2

Closed johntom closed 2 years ago

johntom commented 2 years ago

1) The install now works. 2) Create User works 3) Add New/Edit Post works 4) Login fails after a logout 5) Routing back from either place raises

500 Failed to fetch TypeError: Failed to fetch at Renderer._load (http://localhost:3000/@fs/devel/Svelte/svemix-example/.svelte-kit/runtime/client/start.js:1269:25) at async Renderer._get_navigation_result (http://localhost:3000/@fs/devel/Svelte/svemix-example/.svelte-kit/runtime/client/start.js:999:19) at async Renderer.update (http://localhost:3000/@fs/devel/Svelte/svemix-example/.svelte-kit/runtime/client/start.js:831:27) at async Renderer.handle_navigation (http://localhost:3000/@fs/devel/Svelte/svemix-example/.svelte-kit/runtime/client/start.js:820:3) at async Router._n

All things consirdered, it looks very promising.

pixelmund commented 2 years ago

There is an open issue on the sveltekit repo: https://github.com/sveltejs/kit/issues/3718

johntom commented 2 years ago

Yep, quick workaround is manually edit the node_modules/@sveltejs/kit/assets/client/start.js~1269:

const res = await fetch(${url.pathname == '/' ? '' : url.pathname}/__data.json, {