Kelin2025 / vue-timers

Mixin to manage your intervals in Vue.js
MIT License
231 stars 17 forks source link

TS7016: Could not find a declaration file for module 'vue-timers' #43

Closed pattrickrice closed 5 years ago

pattrickrice commented 5 years ago

I am trying to use the Vue plugin in my application on a component withlang="ts"set up. Another component uses this plugin just fine, but that component is not using typescript.

When I compile, I get the following error:

  [tsl] ERROR in /src/renderer/components/ApplicationStatus.vue.ts(8,36)
        TS7016: Could not find a declaration file for module 'vue-timers'. '/node_modules/vue-timers/index.min.js' implicitly has an 'any' type.

I've tried creating a shim.d.ts file with the line

declare module 'vue-timers'; But that didn't really help. Not sure how to proceed on this.

pattrickrice commented 5 years ago

Question was answered here. https://stackoverflow.com/questions/56483372/ts7016-could-not-find-a-declaration-file-for-module-vue-timers/56485504#56485504