Problem with "Dynamic Import of Meteor@1.5 + Vue"

I tried use dynamic import + Vue.

methods: {
            submitForm() {
                        import('../../../api/posts/posts').then((Posts) => {
                            Posts.insert(this.form, (error) => {
                                ............
                            });
                        });
------------
// Get error
[vue-component] Error while compiling in tag <script> col:30 Unexpected token,
   expected { (42:30)

Now it work fine for new release of meteor-vue

1 Like