-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Supabase example has duplicate utils for cn.ts #73942
Comments
Hey @samcx! I see you've been looking at the labels. I'm happy to help fix this example, but it would be great to confirm how we want to proceed. In my local setup, I removed the utils directory and called the cn helper from the lib folder. However, I noticed that when a Shadcn component is installed, it expects the cn function to be in utils/cn instead of lib/cn. It seems like we might need to update Let me know your thoughts! |
@damiensedgwick Sorry was testing the label and realized this was using the correct issue template Always feel free to open a PR and ping me on the PR (no need to ask permission for opening PRs)! I would always double-check if there is an open PR(s) already to fix the issue. |
This pull request removes duplication of a utility function within the `with-supabase` example as mentioned in the following issue vercel#73942 - I removed the duplicated code from the `utils` directory as when shadcn installs a new component, that component will look for the helper function in `lib/utils.ts` and forcing users to update every component after installation or modify any config files for shadcn seems like a worse DX. - Fixes vercel#73942 --------- Co-authored-by: samcx <sam@vercel.com>
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
The text was updated successfully, but these errors were encountered: