-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Cannot init shadcn
in next
application
#1525
Comments
Cannot redefine property: File
while adding new component npx shadcn-ui@latest add tabs
shadcn
in next
application
I found this issue on babel repo babel/babel#15927 Try to remove your babel from global packages and run shadcn init command again to install a newer version from babel. |
@brunocroh It worked. Thank you 🙇 |
@hyper-dot Hi, i faced same issue and tried to remove @babel in node_module but still the same. May I know how you remove the @babel/core? |
Did you trying to update your node version to 20.6.1? |
@Jace996 I am using linux and I removed it from In the error you can see path of your babel like in mine :
Hope this helps. Or you can paste your logs. |
I removed all of babel as well, yet it still doesn't work. Here are my logs which was after i deleted @babel: Need to install the following packages: TypeError: Cannot redefine property: File Node.js v20.6.0 |
Try update node to v20.6.1 |
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
My whole terminal :
The text was updated successfully, but these errors were encountered: