unovue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
5.32k stars 318 forks source link

[Bug]: Installing toast gave me [@vue/compiler-sfc] Failed to resolve extends base type. #710

Open laraib07 opened 3 months ago

laraib07 commented 3 months ago

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

ruvaifa-masood commented 3 months ago

Any updates?

WellDone2094 commented 3 months ago

same issue, i'm using Vue without typescript

ssi-anik commented 1 month ago

I have the same issue. I'm using Vue without typescript too.

Theiaz commented 1 month ago

Installing Typescript as dev dependency solves this issue for me: npm install -D typescript

ssi-anik commented 1 month ago

Installing Typescript as dev dependency solves this issue for me: npm install -D typescript

IDK, but doesn't work for me.