HerringtonDarkholme / kilimanjaro

typed vuex 2.0
62 stars 4 forks source link

Error: Cannot use namespace 'Vue' as a type #16

Open cocodrino opened 6 years ago

cocodrino commented 6 years ago

Hi...good day, I'm trying to use this in my project but I'm getting the following error:

ERROR in /home/yo/Documentos/proyectos/js/vuesple1/node_
modules/kilimanjaro/dist/src/decorator.d.ts
3:39 Cannot use namespace 'Vue' as a type.
    1 | import Vue = require('vue');
    2 | import { Store, BG, BC, BD, BP, BCH, BDH, Helper
 } from './interface';
  > 3 | export declare function Store(target: Vue, key:
string): void;
      |                                       ^
    4 | export declare function Vuex(target: Vue, key: s
tring): void;
    5 | export declare function getHelper<G extends BG,
CH extends BCH, DH extends BDH>(store: Store<{}, G, BC,
BD, BP, CH, DH>): Helper<G, CH, DH>;
    6 |
ERROR in /home/yo/Documentos/proyectos/js/vuesple1/node_
modules/kilimanjaro/dist/src/decorator.d.ts
4:38 Cannot use namespace 'Vue' as a type.
    2 | import { Store, BG, BC, BD, BP, BCH, BDH, Helper } from './interface';
    3 | export declare function Store(target: Vue, key:string): void;
  > 4 | export declare function Vuex(target: Vue, key: string): void;
      |                                      ^
    5 | export declare function getHelper<G extends BG,CH extends BCH, DH extends BDH>(store: Store<{}, G, BC,BD, BP, CH, DH>): Helper<G, CH, DH>;
    6 |

hope you can guide me about how solve it...thank you so much!!!