pnpm's `package.json5` file not supported
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
- Initialize new project using the CLI with PNPM:
pnpm dlx @tanstack/cli@latest create. - Change the
package.jsonfile to apackage.json5file (supported by PNPM). - 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
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
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