Vinnie
09/06/2018, 12:59 PMhalborg
09/06/2018, 1:02 PMVinnie
09/06/2018, 1:05 PMimport { ApolloServer } from "apollo-server-express";
export class MyGraphQL extends ApolloServer
In my extended class’s constructor I eventually have a call to super()
.
I compiled everything to ES5, all good.
I am now using this lib in a project of mine, when I instantiate my class, I get this error
_this = _super.call(this, options) || this;
TypeError: Class constructor ApolloServer cannot be invoked without 'new'
halborg
09/06/2018, 1:06 PMnew MyGraphQL()
anywhere?Vinnie
09/06/2018, 1:06 PMVinnie
09/06/2018, 1:07 PMhalborg
09/06/2018, 1:15 PMVinnie
09/06/2018, 1:20 PMhalborg
09/06/2018, 1:21 PMVinnie
09/06/2018, 1:21 PMVinnie
09/06/2018, 1:21 PMVinnie
09/06/2018, 3:24 PM