Loschcode / vue-mixpanel

A simple Vue.js plugin for Mixpanel
https://laurent.tech
MIT License
38 stars 4 forks source link

Import not working with Vue3/Typescript #7

Closed savannahp closed 3 years ago

savannahp commented 3 years ago

When trying to import import VueMixpanel from 'vue-mixpanel' I get the following error

**Could not find a declaration file for module 'vue-mixpanel'. '/Users/*/node_modules/vue-mixpanel/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/vue-mixpanel if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-mixpanel';

Loschcode commented 3 years ago

There's currently no support for TypeScript in this plugin, I'll need to investigate and adapt it.

Loschcode commented 3 years ago

@savannahp I've reworked the library to use Vue3 as well. It should be fine for the TS part starting from 1.1.0. Let me know if you have any more problem.