TanStack / TanStack/router

pnpm's `package.json5` file not supported

Open
#7,097 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.1k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
143

Description

Which project does this relate to?

Start

Describe the bug

The pnpm run dev command fails when using a package.json5 file instead of package.json.

Your Example Website or App

This simply refers to the start project when initializing with the CLI

Steps to Reproduce the Bug or Issue
  1. Initialize new project using the CLI with PNPM: pnpm dlx @tanstack/cli@latest create.
  2. Change the package.json file to a package.json5 file (supported by PNPM).
  3. Run pnpm run dev.
Expected behavior

Expected that this would work, and the error message was super cryptic, seemingly because the code just assumed that there's a file named exactly package.json.

Screenshots or Videos

No response

Platform

Not relevant to this issue

Additional context

No response

Contributor guide

Open the contributing guide

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

Reproduce the failure by creating a Start project with pnpm dlx @tanstack/cli@latest create, renaming package.json to package.json5, and running pnpm run dev. Trace the CLI or start-project entry point that assumes package.json; done means the generated project runs with package.json5 and no longer produces the cryptic error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.