-
Link to minimal reproductionhttps://stackblitz.com/edit/vitejs-vite-ur52p7 Steps to reproduce
The problemExtending ToastRootProps in useToast.ts throws type error. The code is based on shad cn toast.
Also definig emits as ToastRootEmits in Toast.vue throws type error.
I'm not sure if this problem is related to radix-vue, but would anyone know of some solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I managed to solve the problem by explicitly mapping paths in my tsconfig.
|
Beta Was this translation helpful? Give feedback.
-
I found two solutions for this:
By reading ts docs, none of the two should really be used, so that leaves me confused. |
Beta Was this translation helpful? Give feedback.
I found two solutions for this:
baseUrl: "."
to tsconfignodeResolution
frombundler
tonode
By reading ts docs, none of the two should really be used, so that leaves me confused.