Closed isaacfink closed 2 years ago
I am not using typescript so I didn't include an of the types
I noticed that root routes don't work, e.g.: you can't use kit-docs at /
, but you can at /docs/
or something that's at least one level deep.
Probably the loader is failing to normalize the slug. Can you push your code up to a repo that you can share with me. It'd help me debug way faster.
I got the same kind of error if I am not mistaken:
https://github.com/Myrmod/svelte-babylon/tree/kit-docs
git clone git@github.com:Myrmod/svelte-babylon.git && cd svelte-babylon
git checkout kit-docs
npm ci
npm run dev
This should be resolved in the latest. Added better loader fail handling and the default layout has better meta null
checks too.
I tried on multiple routes so it's not only the root route, what's the latest?
upgrade to 0.6.1
-> npm i @svelteness/kit-docs@^0.6.1 -D
So i upgraded and it's still not working, here is a repo with a reproduction, please let me know when I can delete the repo git@github.com:isaacfink/svelteness-kit-docs-issue.git
Thanks heaps for the repro @isaacfink. The issue seemed to be that shiki
wasn't being optimized by Vite and failing server-side import. I've included by default now. You can delete the repo right after you test if 0.7.2
fixes things on your end.
Thanks such I'll test it tomorrow and let you know, if you don't mind explaining in short what is shiki? I saw it's in the config but I had no idea what it does, is it the theme?
Syntax highlighter: https://shiki.matsu.io/
Also should I expect problems with deployment? Specifically with vercel?
I've personally deployed to Vercel without any issues. Feel free to test it out in a PR so it's not on your main site. If you run into any issues let me know in a new issue.
Since 0.7.2 it works fine. Thank you a lot :)
It works now but I have a different issue now, the sidebar disappears after a second
Thanks @isaacfink. I'm looking in to it now https://github.com/svelteness/kit-docs/issues/10.
I copied the docs route folder from this repo as a starting point but I keep getting this error, the only thing I changed in the folder is I removed the images (logo, and social card) and all the references to it, I also renamed layout to layout.reset because I have a root layout
I have a
[dir].sidebar.json.js
with the following codeand
[slug].meta.json.js
this is my svelte config
I always get the same error,