Using client components inside createStreamableUI
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Hey guys, is there a way I can use client components inside createStreamableUI? Seems like client components are not being added in React Client Manifest.
3 Replies
Asiatic LionOP
Just noticed that it doesn't help if I have imported that Client Component outside of server action, where I'm using createStreamableUI.
For example, I'm using Checkbox from shadcn/ui, whenever I'm using it inside createStreamableUI, I'm always getting -
For example, I'm using Checkbox from shadcn/ui, whenever I'm using it inside createStreamableUI, I'm always getting -
Could not find the module ".../src/components/ui/checkbox.tsx#Checkbox" in the React Client Manifest. This is probably a bug in the React Server Components bundler.Asiatic LionOP
Also I'm noticing that createStreamableUI fails when deployed on Vercel...
Asiatic LionOP
I've also noticed that, after deploying on Vercel, streaming doesn't work from createStreamableUI. Both on dev and preview, I see same results, but on Vercel, I can only see after .done has been called.