MeForma / vue-toaster

Vue.js toast notification plugin for vue 3
MIT License
194 stars 39 forks source link

Should be used with Vue3 Typescript #22

Open KLala94 opened 3 years ago

KLala94 commented 3 years ago

It seems not working with typescript, thanks.

The Error is: TS7016: Could not find a declaration file for module '@meforma/vue-toaster'.

richcoleman-alphatrust commented 3 years ago

It seems not working with typescript, thanks.

The Error is: TS7016: Could not find a declaration file for module '@meforma/vue-toaster'.

I get the same error.

richcoleman-alphatrust commented 3 years ago

I created a file called vendor.d.ts and added this to it:

declare module '@meforma/vue-toaster';

It resolved the error.

ankurk91 commented 2 years ago

You can use this package instead https://github.com/ankurk91/vue-toast-notification