TanStack / TanStack/router

TypeError: Cannot read properties of undefined (reading 'graph') when trying to run start-basic-auth sample in WSL 2 Ubuntu

Open
#6,872 1 comment 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?

Router

Describe the bug

When trying to run the "start-basic-auth" sample in an Ubuntu instance on WSL 2 on an ARM machine, the following error is logged to the console:

TypeError: Cannot read properties of undefined (reading 'graph')
    at new ii (/home/(user)/projects/sandpit/tanstack-examples/start-basic-auth/node_modules/.pnpm/@prisma+client@7.4.2_prisma@7.4.2_@types+react@19.2.14_react-dom@19.2.4_react@19.2.4__r_49b4b128965f74ea9bbd7586bc0c7d7a/node_modules/@prisma/param-graph/src/serialization.ts:305:46)
    ... 18 lines matching cause stack trace ...
    at async file:///home/(user)/projects/sandpit/tanstack-examples/start-basic-auth/node_modules/.pnpm/@tanstack+start-plugin-core@1.166.3_@tanstack+react-router@1.166.3_react-dom@19.2.4_rea_a7f1db737eddf2e106030b1d3fd0b9ae/node_modules/@tanstack/start-plugin-core/dist/esm/dev-server-plugin/plugin.js:115:30

This is after running:

  • npx gitpick TanStack/router/tree/main/examples/react/start-basic-auth start-basic-auth
  • pnpm install
  • pnpm dev
Your Example Website or App

https://github.com/TanStack/router/tree/main/examples/react/start-basic-auth

Steps to Reproduce the Bug or Issue
  1. Install node via nvm then pnpm via npm install -g pnpm
  2. Clone on a WSL 2 ARM Ubuntu instance
  3. cd to above cloned folder
  4. pnpm install
  5. pnpm dev
Expected behavior

I'd expect the UI to start without errors.

Screenshots or Videos

No response

Platform
  • whatever dependencies are provided in the sample's package.json
  • ARM Surface Laptop 7
  • WSL 2
  • Ubuntu
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

Start with examples/react/start-basic-auth/package.json and reproduce the reported pnpm install and pnpm dev steps on WSL 2 Ubuntu ARM. Trace startup from the sample's dev command through the @tanstack/start-plugin-core stack frame; done means the sample UI starts without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, react, typescript, ubuntu
Domain
devops, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.