We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ai
Getting the following error when trying to import ai/react:
ai/react
🔴 ERROR | Failed to resolve 'ai/react' from './popup.tsx' 🔴 ERROR | Cannot load file './react' from module 'ai'
popup.tsx:
popup.tsx
import { useChat } from "ai/react" export default function Chat() { const { messages, input, handleInputChange, handleSubmit } = useChat() return ( <div className="mx-auto w-full max-w-md py-24 flex flex-col stretch"> {messages.map((m) => ( <div key={m.id}> {m.role === "user" ? "User: " : "AI: "} {m.content} </div> ))} <form onSubmit={handleSubmit}> <label> Say something... <input className="fixed w-full max-w-md bottom-0 border border-gray-300 rounded mb-8 shadow-xl p-2" value={input} onChange={handleInputChange} /> </label> <button type="submit">Send</button> </form> </div> ) }
Relevant Discord thread: https://discord.com/channels/946290204443025438/1125919899609485352
Latest
No response
The text was updated successfully, but these errors were encountered:
knownEsmPackageSet
Successfully merging a pull request may close this issue.
What happened?
Getting the following error when trying to import
ai/react
:popup.tsx
:Relevant Discord thread: https://discord.com/channels/946290204443025438/1125919899609485352
Version
Latest
What OS are you seeing the problem on?
No response
What browsers are you seeing the problem on?
No response
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: