Anyone facing issue while installing shadcn?

I get an error that says "couldn't find the framework" when I try to initialize shadcn and create components.json file?
13 Replies
Arcane
Arcane2w ago
@nithur has reached level 4. GG!
Vishal
Vishal2w ago
Yes, facing the same issue
siegerts
siegerts4d ago
I have an extension here that uses shadcn that can maybe help as a reference - https://github.com/siegerts/dossi-ext
GitHub
GitHub - siegerts/dossi-ext: dossi browser extension: Your own priv...
dossi browser extension: Your own private GitHub notes on every page - siegerts/dossi-ext
Vishal
Vishal3d ago
Hey @siegerts 👋, I can see you've used Context and Fetch for state and query management. Have you ever tried integrating react-query into this or any similar extension?
Arcane
Arcane3d ago
@Vishal has reached level 1. GG!
siegerts
siegerts2d ago
Hey @Vishal , in some of the contexts I use react-query. for example - https://github.com/siegerts/dossi-ext/blob/main/contexts/activity.tsx#L3
Arcane
Arcane2d ago
@siegerts has reached level 4. GG!
Vishal
Vishal2d ago
Hey @siegerts 👋, Thanks for sharing, gave me a lot of clarity. I was curious what underlying storage does react query uses in such cases? Chrome Extension Storage? Do we need to configure it for this?
YAGPDB.xyz
YAGPDB.xyz2d ago
Gave +1 Rep to @siegerts (current: #31 - 1)
Vishal
Vishal2d ago
Moreover, did you consider using react query instead of context API for state management?
siegerts
siegerts2d ago
It won’t use chrome storage unless you hook into that. Not sure I follow the second question. I’m using them together. My recommendation would be to test what works for your use case.
Vishal
Vishal15h ago
Thanks a lot @siegerts ☺️
YAGPDB.xyz
YAGPDB.xyz15h ago
Gave +1 Rep to @siegerts (current: #17 - 2)
Want results from more Discord servers?
Add your server