forwardRef issues with SHADCN-admin
I've recently watched a video of WASPs and love the SHADCN-admin that was being used I have systematically tried to add it to my app, but I run into forwardRef issues. All the reading I'm doing is saying WASP doesn't support this and I need to create my own wrapper and or ask the WASP team if this is in the pipeline for support?
3 Replies
Hi @stobbsc. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
There is no explicit mention in the provided knowledge sources about Wasp having official support or lack thereof for React's forwardRef, or specific integration issues with SHADCN-admin related to forwardRef. However, there are several community discussions about integrating shadcn/ui with Wasp, and users have managed to get it working by following manual steps, such as those described in this gist: gist.github.com/infomiho/b35e9366e16913949e13eaba0538f553. Some users reported initial issues but were able to resolve them after following the instructions carefully and restarting their environment. There is no direct mention of forwardRef-specific problems or the need to create wrappers in these discussions.
If you are encountering forwardRef issues, it may be related to how Wasp handles React components or how dependencies are set up, but the knowledge sources do not provide a definitive answer or roadmap for official support. The best current approach is to follow the manual integration steps and, if issues persist, share detailed error messages with the Wasp community for troubleshooting, as others have done successfully. If you believe this is a core limitation or bug, raising it as a GitHub issue or in the Discord community is recommended, as the team and community are responsive to such feedback and requests for support for new libraries or patterns like forwardRef with shadcn/ui componentshas anyone got shadcn to work with wasp?.
In summary: There is no official statement or documentation about forwardRef support or a planned fix, but community workarounds exist, and sharing your specific error details with the community may help resolve your issue.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @stobbsc, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
hey @stobbsc i'm not sure about a specific forwardRef issue but did you see my other message about the shadcn-admin template? --> https://discord.com/channels/686873244791210014/1386288656297230336/1386706101986263083
So far no on the admin side, I'm still finishing the migration, I have noticed different icon sets so I've transfer every to lucide-react. I also noticed different data-tables to normal, but haven't gotten into that one yet