Skip to content

Vue 2.0 #12

@mattoni

Description

@mattoni

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions