Open oneezy opened 2 years ago
That might be a SvelteKit issue because the 404
error contains the link href
and a whole heap of other stuff: 404 /docs/first-category/first-page" style=""> ...
.
Mmm it might also be KitDocs poorly transforming the href
on Windows. I can't say without debugging... but I can't debug this since I'm on Mac. I'd need some help. Here's the steps I'd take:
git clone git@github.com:svelteness/kit-docs.git
pnpm i
pnpm kit:build --filter kit-docs
anytime you've made a change.If nothing is found then probably look through the handlers and find any link/url potential transform issues there.
Update with what's been tried so far:
+ 1. git clone git@github.com:svelteness/kit-docs.git
+ 2. pnpm i
I then tried running
- pnpm dev
Then
- pnpm kit:build --filter kit-docs
. . .
running pnpm dev
this time produced different output with 500 Error code when going to http://localhost:3001
@mihar-22 says:
it's just the
isLocalEnv
test is failing so then this fails -> https://github.com/svelteness/kit-docs/blob/b7ae220a523e7cd1b601ce3112b9586f6979099e/packages/kit-docs/src/node/markdown-plugin/parser/parseMarkdown.ts#L21It's resolving the path to
@svelteness/kit-docs
which won't work when running locally. it needs to point to$lib
Find out which of these lines are failing and add
console.log
statements and re-runpnpm dev
-> https://github.com/svelteness/kit-docs/blob/b7ae220a523e7cd1b601ce3112b9586f6979099e/packages/kit-docs/src/node/utils/env.ts#L12-L14
But still getting same results. Could be doing something wrong on my end.
#helpwanted
I'm on a Windows 11 machine using Git Bash if that has anything to do with it. I can confirm the same issue is happening w/
npm run build
alsohere's the error up front for brevity
Here's the full log