Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: on bun x shadcn-vue@latest add button error did not recognize object of type "TSInterfaceHeritage" #905

Open
2 tasks
jeydi243 opened this issue Nov 16, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@jeydi243
Copy link

jeydi243 commented Nov 16, 2024

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.
image
I have tried also to run :

  • bun x shadcn-vue@latest add button
  • bunx shadcn-vue@latest add button

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 513.63 MB / 15.73 GB
  Binaries:
    Node: 18.18.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.6 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.34 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (127.0.2651.105)
    Internet Explorer: 11.0.22621.3527

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@jeydi243 jeydi243 added the bug Something isn't working label Nov 16, 2024
@GabrielFrohlich
Copy link

it happens here too

@ManukMinasyan
Copy link

It occurs here as well.

@catnaut
Copy link

catnaut commented Nov 16, 2024

node.js v20 + pnpm as well

@Vertirax
Copy link

Vertirax commented Nov 16, 2024

It looks like v0.11.0 has the same issue. (I was able to add components using 0.10.5 though)

@webceoboy
Copy link

+1

@aphofstede
Copy link

So far it's only button that has this issue for me.

Workaround: bun x [email protected] add button

@TheBatman09
Copy link

TheBatman09 commented Nov 16, 2024

I also had this issue when trying to use several components, for now I did like @aphofstede and target a lower version :
npx [email protected] add sidebar

@Chaplink
Copy link

I also encountered the same problem in the project with pnpm. Another way of thinking is to load tabs successfully.

@pauljaspersahr
Copy link

pauljaspersahr commented Nov 17, 2024

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",

@Soviut
Copy link

Soviut commented Nov 17, 2024

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 [email protected] add sidebar

@mdthansil
Copy link

mdthansil commented Nov 18, 2024

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 [email protected] add button
npx [email protected] add sidebar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests