TanStack / TanStack/tanstack.com

Windows: [Server] [fetchFs] Tried to read file that does not exist

Open
#928 0 comments 0 reactions 0 assignees View on GitHub

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

Image
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
  1. pnpm install
  2. pnpm run dev
  3. set ENV:TANSTACK_DOCS_USE_REMOTE = false
  4. navigate url http://localhost:3001/query/latest using 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.