-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 streaming a client UI component from server action #1969
Comments
I am also encountering the same error.
When trying again, I had to remove
|
Probably the same problem #1933 |
It probably is, having the same issue here too. With the versions mentioned above. Funny enough, I'm getting the same error even after I rolled back to the previous known working version of ai (3.1.3) and next (14.1.0). I tried removing |
I'm getting the same error, this seems like a wonky bug :D |
Same here , reverting to ai@3.1.31 getting it work again, thx @hotchpotch |
@lgrammel I think the issue is not resolved. Using the latest version When having a client component like... "use client";
export default function Text({ content }: { content: string }) {
return (<p>{content}</p>);
} ...and streaming it with either
The same, when I use the client component in a parent server component. When using the server component as a parent, the server component first loads and then the error pops up. Seams like the bundling of the client component is not done the right way. And maybe it is an issue for the next bundler. (Here we are pushing the limits of Next.js ^^) |
I noticed when using dynamic import, that it seems to work somehow. But cannot verify it is fixed, since I have also introduced some changes to other parts of my codebase. |
Still have the same problem with 3.4.9 |
Description
Create a client side component by marking it with 'use client'
Then call that component in a server action marked by 'use server' in createStreamableUI
An error is thrown: Error: Could not find the module "...components/stocks.tsx#Stock" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
I have tried versions 3.1.31 and 3.1.36 of AI sdk, both fail. Is client component supposed to work from RSC?
Code example
stocks.tsx file:
actions.tsx file:
Additional context
No response
The text was updated successfully, but these errors were encountered: