Closed jeydi243 closed 1 week ago
it happens here too
It occurs here as well.
node.js v20 + pnpm as well
It looks like v0.11.0
has the same issue. (I was able to add components using 0.10.5
though)
+1
So far it's only button
that has this issue for me.
Workaround: bun x shadcn-vue@0.10 add button
I also had this issue when trying to use several components, for now I did like @aphofstede and target a lower version :
npx shadcn-vue@0.10.5 add sidebar
I also encountered the same problem in the project with pnpm. Another way of thinking is to load tabs successfully.
node ➜ /project/app npx shadcn-vue@latest add sidebar
⠸ Installing sidebar...
ERROR did not recognize object of type "TSInterfaceHeritage"
Just got the same issue with sidebar
.
I am running in it devcontainer
with
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",
I got the same issue when installing the Sidebar component. While the Vue components all were created, it seems to not write the index.ts
file when it occurs.
Like others have mentioned using a lower version of the CLI worked.
npx shadcn-vue@0.10 add sidebar
I encountered the same problem with the Button and Sidebar: "did not recognize object of type 'TSInterfaceHeritage'."
I was able to resolve the issue by changing the version like this:
npx shadcn-vue@0.10 add button
npx shadcn-vue@0.10 add sidebar
The issue appears to be caused by vue-metamorph@3.2.2
. After downgrading vue-metamorph
to version 3.2.0, everything works fine.
Reproduction
https://github.com/jeydi243/hasi
Describe the bug
I Initialize a new nuxt app ( bun x nuxi@latest init hasi) and follow procedure to add shacn-vue for nuxt project documentation when i try to add component Button the error appear. I have tried also to run :
bun x shadcn-vue@latest add button
bunx shadcn-vue@latest add button
System Info
Contributes