ui: [bug] :Error: Cannot read properties of undefined (reading 'resolvedPaths')
If you’re seeing the error message, make sure you have aliases defined for components, utils, ui, lib and hooks in your components.json.
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
Thanks @MatiasSommer for helping me debug this.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 200
- Comments: 18
Commits related to this issue
- feat: add basic styling to tournament header - Add shadcn/ui's Badge component - Add basic styling to tournament header - Fix aliasing issue with shadcn/ui 2.3.0 (https://github.com/shadcn-ui/ui/issu... — committed to ash0545/tournament-software by ash0545 2 years ago
- fix: make sure have aliases defined for components, utils, ui, lib and hooks in components.json (https://github.com/shadcn-ui/ui/issues/6527#issue-2823569500) — committed to MeiyuTech/AET-App by Jeromestein 2 years ago
- fix: shadcn components.json - https://github.com/shadcn-ui/ui/issues/6527#issue-2823569500 — committed to heurist-network/imagine by rexdotsh 2 years ago
Works now, after wasting so much time cleaning and reinstalling packages unsure about the issue.
Today, I faced this error. When I checked the ShadCN GitHub repository, I found the solution. The issue occurred because I missed adding ui, lib, and hook in the components.json file. After adding them, the problem was resolved.