ES6 Import fails
atakajlo opened this issue · comments
Dmytro Fedorenko commented
Hello, I try to import module but I get this error
Error: The keyword 'static' is reserved (728:16) in C:\OpenServer\domains\a.new\node_modules\vue-inputmask\3rd\inputmask.js
my code
// root import
import Vue from 'vue';
import axios from 'axios';
import VueAxios from 'vue-axios';
import VueCookie from 'vue-cookie';
import VueInputmask from 'vue-inputmask';
// own components
import CityChooser from './vue_components/main/city_chooser.vue';
import CartInformer from './vue_components/cart/cart_informer.vue';
import RequestCall from './vue_components/main/request_call.vue';
import AuthForm from './vue_components/main/auth.vue';
window.Event = new Vue();
// install plugins
Vue.use(VueAxios, axios);
Vue.use(VueCookie);
Vue.use(VueInputmask);
new Vue({
el: '#root',
components: {
CityChooser,
CartInformer,
RequestCall,
AuthForm
}
});
Simon Cleriot commented
Yes looks like there is a problem with ES6 import (only tested with require), I'll have a look
Simon Cleriot commented
It should be fixed with the last version of the library