Open logan-anderson opened 1 month ago
Hmm, tried with npm
and it seemed to work strange
Odd. Literally did this yesterday locally with pnpm
and had no issues (besides the generated routes not existing at first):
https://tanstack.com/router/latest/docs/framework/react/start/getting-started
node --version && pnpm --version
v20.16.0
9.11.0
Seems to be an issue with pnpm@7
pnpm v7.33.7: does not work pnpm v9.12.1 (latest version): works with no issues
Since pnpm@7 is still pretty widely used. Going to leave this open but update the description
In addition to the fact that pnpm 7 is no longer supported, plus acknowledging the role of a package manager in this instance which is just for downloading the necessary files correctly onto the filesystem, I'm not sure what we can do on our end to make any reasonable fixes here.
We'll happily welcome any fixes from the community with reference to this issue. Till then, we'd recommend using a version of your package manager that's supported by the respective maintainers.
getting this issues with yarn... @SeanCassiere
edit: maybe not related?
I see the Clerk example failing with this with pnpm@9.12.2 on main this morning caae48cf3ae843a30f527fc81d66d52f4973cc80
@thomasballinger it doesn't look to be related. Will need to investigate this separately.
@logan-anderson @LeulAria I've rested with npm (10.5.0), yarn (1.22.19), and pnpm (9.12.2) using the Getting Started Counter example and both the "dev" and "build" commands work as expected. Am I missing something here?
@SeanCassiere the error I saw only happens with pnpm version 7
@SeanCassiere the error I saw only happens with pnpm version 7
As I mentioned earlier in this https://github.com/TanStack/router/issues/2540#issuecomment-2418121312, pnpm 7 is EOL and there's nothing to be done there.
I was getting the same error message using Bun, and after pnpm install
with pnpm@9 it's not happening anymore, even after installing again with bun install
and running with bun run dev
. I don't know what to make of it.
I was getting the same error message using Bun, and after
pnpm install
with pnpm@9 it's not happening anymore, even after installing again withbun install
and running withbun run dev
. I don't know what to make of it.
Also was getting this error using bun in a monorepo but nuked all my node_modules and ran bun install
again and seems to have fixed it. I did have another TSR package in /apps
and made sure to also update the dependencies of all the react packages in the monorepo as well. So not sure if that was a factor.
Which project does this relate to?
Start
Describe the bug
Update: This only happens when using pnpm@7. The fix is to use pnpm@9
I am trying to use TanStack Start. I am following all of the instructions listed in this guide but I am getting a type error in my editor allowing with the following error when I try to open the app on localhost:300
I also tried
Cannot find package '@vitejs/plugin-react' imported from /home/projects/gqairqlbqw.github/node_modules/@tanstack/start/dist/esm/config/index.j
Your Example Website or App
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter
Steps to Reproduce the Bug or Issue
I am using pnpm with node version v20.9.0
pnpm run dev
Expected behavior
I should be able to follow the official docs without an error
Screenshots or Videos
No response
Platform
Additional context