vercel / vercel/ai-elements

Broken AI Imports in prompt-input component

Open Beginner friendly
#423 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.