I use babel for forwarding.
I have a class BaseComponent that extends to class Logger .
When I run new Logger() in a browser, I get this error
The BaseComponent class constructor cannot be called without the "new"
code that calls this:
var Logger = function (_BaseComponent) { _inherits(Logger, _BaseComponent); function Logger() { _classCallCheck(this, Logger); return _possibleConstructorReturn(this, Object.getPrototypeOf(Logger).call(this, "n"));
Nikos source share