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]: Installing toast gave me [@vue/compiler-sfc] Failed to resolve extends base type. #710

Open
2 tasks
laraib07 opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working detypes Generate vanilla JavaScript samples from TypeScript

Comments

@laraib07
Copy link

Reproduction

npx shadcn-vue@latest add toast

Describe the bug

Got this error while installing toast:

ERROR [@vue/compiler-sfc] Failed to resolve extends base type. 10:28:18
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:

interface Props extends /* @vue-ignore */ Base {}

Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.

anonymous.vue

Also i am using javascript for the project but the component installed is using typescript.

System Info

System:
    OS: macOS 11.7.10
    CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
    Memory: 428.70 MB / 4.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.18.2 - /usr/local/bin/node
    npm: 9.8.1 - /usr/local/bin/npm
  Browsers:
    Brave Browser: 127.1.68.137
    Safari: 16.6.1
  npmPackages:
    @vueuse/core: ^10.9.0 => 10.9.0
    radix-vue: ^1.6.1 => 1.8.0
    vue: ^3.4.21 => 3.4.27

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@laraib07 laraib07 added the bug Something isn't working label Aug 13, 2024
@sadeghbarati sadeghbarati added the detypes Generate vanilla JavaScript samples from TypeScript label Aug 18, 2024
@ruvaifa-masood
Copy link

Any updates?

@WellDone2094
Copy link

WellDone2094 commented Aug 28, 2024

same issue, i'm using Vue without typescript

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

No branches or pull requests

4 participants