Skip to content
New issue

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

Error: action is not a function #1531

Open
camwest opened this issue May 8, 2024 · 4 comments
Open

Error: action is not a function #1531

camwest opened this issue May 8, 2024 · 4 comments

Comments

@camwest
Copy link

camwest commented May 8, 2024

Description

CleanShot 2024-05-08 at 10 47 05@2x

Copy & Pasted these examples: https://sdk.vercel.ai/docs/ai-sdk-rsc/ai-ui-states

Code example

No response

Additional context

No response

@camwest
Copy link
Author

camwest commented May 8, 2024

FYI This happens when I try to submit a message via the UI

@camwest
Copy link
Author

camwest commented May 8, 2024

Unsure if this is related or not:

CleanShot 2024-05-08 at 10 48 33@2x

export const AI is typed as any instead of AIProvider<...>. Not sure if this is related.

@lgrammel
Copy link
Collaborator

lgrammel commented May 9, 2024

@camwest do you have a github repository with a reproduction that you could share?

@camwest
Copy link
Author

camwest commented May 9, 2024

@camwest do you have a github repository with a reproduction that you could share?

I tried to check this one out and get the example set up. I kept running into an issue where it couldn't find "ai/rsc" even after running pnpm install in the root and the example.

Will attempt again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants