vue-typescript icon indicating copy to clipboard operation
vue-typescript copied to clipboard

Vue 2.0

Open mattoni opened this issue 8 years ago • 3 comments

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!

mattoni avatar Aug 15 '16 21:08 mattoni

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

itsfrank avatar Aug 16 '16 08:08 itsfrank

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

mickdekkers avatar Oct 06 '16 11:10 mickdekkers

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

neilsimp1 avatar Dec 16 '16 13:12 neilsimp1