Skip to content

Dependency Mismatch with ai-gemini #342

@AttarTee

Description

@AttarTee

TanStack AI version

0.2.2

Framework/Library version

React 19.2.0

Describe the bug and the steps to reproduce it

There's an issue with the depenencies. If i run npm create @tanstack/start@latest and create a template with AI, or if i run npm install @tanstack/ai @tanstack/ai-react @tanstack/ai-gemini, i get error

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: undefined@undefined npm error Found: @tanstack/ai@0.2.2 npm error node_modules/@tanstack/ai npm error @tanstack/ai@"*" from the root project npm error peer @tanstack/ai@"^0.2.2" from @tanstack/ai-gemini@0.3.2 npm error node_modules/@tanstack/ai-gemini npm error @tanstack/ai-gemini@"^0.3.2" from the root project npm error npm error Could not resolve dependency: npm error @tanstack/ai-react@"*" from the root project npm error npm error Conflicting peer dependency: @tanstack/ai@0.3.0 npm error node_modules/@tanstack/ai npm error peer @tanstack/ai@"^0.3.0" from @tanstack/ai-react@0.3.0 npm error node_modules/@tanstack/ai-react npm error @tanstack/ai-react@"*" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see:

Furthermore, if I run npm create @tanstack/start@latest and chose the AI option, i get error
npm i npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: tanstackstart2@undefined npm error Found: @tanstack/ai@0.3.0 npm error node_modules/@tanstack/ai npm error @tanstack/ai@"latest" from the root project npm error peer @tanstack/ai@"^0.3.0" from @tanstack/ai-anthropic@0.3.0 npm error node_modules/@tanstack/ai-anthropic npm error @tanstack/ai-anthropic@"latest" from the root project npm error 1 more (@tanstack/ai-client) npm error npm error Could not resolve dependency: npm error @tanstack/ai-gemini@"latest" from the root project npm error npm error Conflicting peer dependency: @tanstack/ai@0.2.2 npm error node_modules/@tanstack/ai npm error peer @tanstack/ai@"^0.2.2" from @tanstack/ai-gemini@0.3.2 npm error node_modules/@tanstack/ai-gemini npm error @tanstack/ai-gemini@"latest" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error

I was able to get it running by removing anthropic and downgrading the and tanstack-ai (Claude did most of this). Also, I have to remove all anthropic dependencies to get the app running and able to use the chat example. However, this work-around means i lose the thought_signature upgrade for the gemini package.

Appologies for the format of this post, i'm new to git

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/devbox/z2vzrg

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

Maybe, I'll investigate and start debugging

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions