radix-vue / shadcn-vue

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

[Bug]: Toast does not seem to work #600

Closed abhinavxd closed 2 weeks ago

abhinavxd commented 2 weeks ago

Reproduction

https://www.shadcn-vue.com/docs/components/toast.html

Describe the bug

Hi, I am not able to get the toast working. I've added the Toaster to the app.vue, and I get this error. image

Appreciate any help, Thanks!

System Info

System:
    OS: Linux 6.6 EndeavourOS
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 2.90 GB / 15.35 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.7.0 - ~/projects/artemis/frontend/node_modules/.bin/npm
    bun: 1.0.25 - ~/.bun/bin/bun
  npmPackages:
    @vueuse/core: ^10.9.0 => 10.9.0 
    radix-vue: ^1.8.0 => 1.8.1 
    vue: ^3.4.15 => 3.4.27

Contributes

abhinavxd commented 2 weeks ago

npm install typescript --save-dev Fixed it.