itsfrank / vue-typescript

Typescript decorators to make vue feel more typescripty
MIT License
357 stars 25 forks source link

Vue 2.0 #12

Open mattoni opened 8 years ago

mattoni commented 8 years ago

I'm attempting to set this up to work with Vue 2.0. First thing I had to do was edit the definitions from definitely typed for Vue so that it exports a default module instead.

Using vue-typescript, I get the following error:

vuecomponent.js:38Uncaught TypeError: Class constructor default_1 cannot be invoked without 'new'

and it points to the following block of code:

// a utility function to generate instances of a class
        function construct(constructor, args) {
            var c = function () {
                return constructor.apply(this, args);
            };
            c.prototype = constructor.prototype;
            return new c();
        }

under the vuecomponent.js file.

Just wondering if there will be an update to support 2.0, and what I can do in the meantime so that I can get this working.

Thanks for all your hard work!

itsfrank commented 8 years ago

I'll look into it for sure, however i'm out of the country until september. I'm planning on releasing a major update early to mid september this will be a top priority

mickdekkers commented 8 years ago

@itsFrank is the update still planned? Could we possibly get a new ETA? Thanks!

neilsimp1 commented 7 years ago

@itsFrank I'm looking for this, too. Any news?