Webpack: TypeError: Cannot call a class as a function

Created on 1 Apr 2017  路  4Comments  路  Source: vuejs-templates/webpack

babel-preset-latest cannot support class?

any other advice for me? thanks a lot.

Most helpful comment

Your error sounds like you did this:

var something = YourClass()

Where you should do this:

var something = new YourClass()

All 4 comments

This is not enough information, I don't understand your problem. With this template, Babel should transpile classes to ES5

Your error sounds like you did this:

var something = YourClass()

Where you should do this:

var something = new YourClass()

Closing for inactivity.

@LinusBorg thanks you saved my life

Was this page helpful?
0 / 5 - 0 ratings