Broken AI Imports in prompt-input component
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 283
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
The component prompt-input is broken because of the types which we are getting from ai package.
import type { ChatStatus, FileUIPart, SourceDocumentUIPart } from "ai";
Error I get:
Module '"ai"' has no exported member 'ChatStatus'.
'"ai"' has no exported member named 'FileUIPart'. Did you mean 'FilePart'?
Module '"ai"' has no exported member 'SourceDocumentUIPart'.
Looks like the ai package has changed. Need help to fix this issue.
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
Start at the prompt-input component and inspect its type imports from the ai package against the package version used by the repository. Reproduce the TypeScript errors, then update the component's imports or types so the project type-checks and the prompt-input component builds without those missing-export errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100