ktsn / vuex-class

Binding helpers for Vuex and vue-class-component
MIT License
1.73k stars 86 forks source link

Module parse failed: Unexpected token (3:7) #12

Closed victorgarciaesgi closed 7 years ago

victorgarciaesgi commented 7 years ago

I updated to Vue 2.5

ERROR in ./node_modules/vuex-class/lib/bindings.d.ts [1] Module parse failed: Unexpected token (3:7) [1] You may need an appropriate loader to handle this file type. [1] | import Vue from 'vue'; [1] | import { mapState, mapGetters, mapActions, mapMutations } from 'vuex'; [1] | export declare type VuexDecorator = (proto: V, key: string) => void; [1] | export declare type StateTransformer = (state: any, getters: any) => any; [1] | export declare type MapHelper = typeof mapState | typeof mapGetters | typeof mapActions | typeof mapMutations;

ktsn commented 7 years ago

Can you provide reproduction?

victorgarciaesgi commented 7 years ago

I fixed it by going back to older version of vue-loader with Webpack