Closed victorgarciaesgi closed 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;
Can you provide reproduction?
I fixed it by going back to older version of vue-loader with Webpack
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;