TanStack / TanStack/tanstack.com
Windows: [Server] [fetchFs] Tried to read file that does not exist
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 401
- Avg merge
- 18h 14m
- Merged PRs (30d)
- 56
Description
Describe the bug
[fetchFs] Tried to read file that does not exist
Steps to reproduce
I followed local setup in https://github.com/TanStack/tanstack.com/blob/main/README.md
Directory structure
D:\external\tanstack
├── query
├── router
├── table
├── tanstack.com
└── virtual
- pnpm install
- pnpm run dev
- set ENV:TANSTACK_DOCS_USE_REMOTE = false
- navigate url
http://localhost:3001/query/latestusing chrome
Additional context
OS: Windows 11 running on VM
What's worked for me
import { fileURLToPath } from 'node:url'
const dirname = path.dirname(fileURLToPath(import.meta.url))
const baseDir = path.resolve(dirname, `../../../${repo}`)
const localFilePath = path.resolve(baseDir, filepath)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the fetchFs implementation and the local setup described in the repository README, then reproduce the failure on Windows with TANSTACK_DOCS_USE_REMOTE=false and the /query/latest URL. Compare its path resolution with the shown fileURLToPath approach; done means local documentation loads without the missing-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100