Replies: 1 comment
-
| 
         Yep, this migration step is hidden in the changelog, and I came accross it by change. It's difficult to remember to run this command every time you install a new component  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
According to the June 2025 changelog, we should replace all
@radix-ui/react-*imports withradix-uiimports. This is a really nice change that cleans up our package.json, and we can run it automatically with theshadcn@latest migrate radixcommand.However, this only applies to components that were already installed, not to future components. When we install a new component, it will still use the old
@radix-ui/react-*import, and we will need to remember to run the migration command again.Simple reproduction steps:
radix-uiby running the commandnpx shadcn@latest migrate radixradix-ui@radix-ui/react-*import ❓❓❓This is really awkward to use, especially when working in a team, and makes us want to not make this migration at all. There is no mention of this change anywhere else, and the base components themselves still use the old imports. How strange!
There may be some creative workarounds - like adding the migrate command as a
postinstallscript - but we feel that this is just substituting one awkward solution with another.What are other people's thoughts about this change, and how are you dealing with it?
Beta Was this translation helpful? Give feedback.
All reactions