Closed nivv closed 8 years ago
Leave out the type="es"
in your Script tag and it should work for now, at least it did for me when I tried to compile with type="es6"
You can still use ES5/6 Syntax.
@twaileit Thanks! Also below doesn't work anymore:
import indexUser from './components/users/indexUser.vue';
new Vue({
el: '#app',
components: {
indexUser: indexUser
}
});
It has to be written like this:
import indexUser from './components/users/indexUser.vue';
new Vue({
el: '#app',
components: {
"indexUser": indexUser
}
});
Before elixir 4.0 we could do it like this:
I get below error message:
'import' and 'export' may appear only with 'sourceType: module'
My package.json:
My gulpfile:
I've tried to remove my old node_modules and installing again, but same issue persists.
Node version
node -v v5.0.0
NPM versionnpm -v 3.3.6