Skip to content

Broken stream type exports from @tanstack/ai #103

@lachlancollins

Description

@lachlancollins

TanStack AI version

v0.0.2

Framework/Library version

Vanilla

Describe the bug and the steps to reproduce it

Due to a bug in @tanstack/vite-config, a type error has gone undetected.

The current index.ts file exports from './stream'. This export does not exist, and should map to ./stream/index.ts. For some reason, this is instead generating the following:

Image

This can be fixed by instead exporting from './stream/index':

Image

However, it now exposes a type error in @tanstack/ai-client, specifically chat-client.ts:

Image

I'd appreciate if someone could have a look at this. Minimal repo is this branch: https://github.com/TanStack/ai/tree/broken-types

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://github.com/TanStack/ai/tree/broken-types

Screenshots or Videos (Optional)

No response

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

None

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