Broken AI Imports in prompt-input component
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 64/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
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.
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.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 283
- Avg merge
- 32m
- Merged PRs (30d)
- 1
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.
More from vercel/ai-elements
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
vercel/ai-elements#494 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vercel/ai-elements#490 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
vercel/ai-elements#486 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/ai-elements#484 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vercel/ai-elements#458 ·
All issues in vercel/ai-elements
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100