You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shadcn docs and init does not seem to cope well or even consider the possibility that someone does not want to use paths and/or baseUrl in tsconfig.
TS Language Service does not provide good refactoring ability when using paths and baseUrl because it does leave the resolution to the bundlers. That means, providing intelisense needed to properly refactor aliased paths is not possible clean with TS language service. Using paths and baseUrl is hurting being able to move files and rename very strong. The reason why I stopped use it. I think it will take another 1-2 years until people will realize this (some already do) and someone prominent writes a blog about "don't use paths".
I have tried some ways to trick the system in the assumption of paths being generated with the cli in a certain way, but so far did not find a solution. There maybe is one, but I think it would benefit shadcn to document it and maybe bring in the option into the init.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
shadcn docs and init does not seem to cope well or even consider the possibility that someone does not want to use paths and/or baseUrl in tsconfig.
TS Language Service does not provide good refactoring ability when using paths and baseUrl because it does leave the resolution to the bundlers. That means, providing intelisense needed to properly refactor aliased paths is not possible clean with TS language service. Using paths and baseUrl is hurting being able to move files and rename very strong. The reason why I stopped use it. I think it will take another 1-2 years until people will realize this (some already do) and someone prominent writes a blog about "don't use paths".
I have tried some ways to trick the system in the assumption of paths being generated with the cli in a certain way, but so far did not find a solution. There maybe is one, but I think it would benefit shadcn to document it and maybe bring in the option into the init.
Beta Was this translation helpful? Give feedback.
All reactions