vue-page-transition icon indicating copy to clipboard operation
vue-page-transition copied to clipboard

TypeScript support

Open aeyno opened this issue 4 years ago • 2 comments

When I try to import vue-page-transition in TypeScript I'm getting this error : Could not find a declaration file for module 'vue-page-transition'. '/project/node_modules/vue-page-transition/dist/vue-page-transition.common.js' implicitly has an 'any' type

aeyno avatar Jul 27 '20 18:07 aeyno

@Any0ne22

in your project, go to src and create a file called shims-page-transition.ts

in this file declare this :

declare module 'vue-page-transition'

It will fix your error in wait of a real typescript support.

NOPROD avatar Aug 29 '20 09:08 NOPROD

@Any0ne22

in your project, go to src and create a file called shims-page-transition.ts

in this file declare this :

declare module 'vue-page-transition'

It will fix your error in wait of a real typescript support.

It works on my side. Thanks a lot 💯

voquanghoa avatar Dec 08 '21 09:12 voquanghoa