You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered with this error in the docker container logs. It is related to the ApolloError class not being called with the new keyword. But that doesn't actually seem to be the case.
In src/errors.ts (line 25), NonCriticalError class extends the ApolloError class.
In the src/resolvers/deposit.ts (line 54), calls the extended NonCriticalError class with the new keyword. So it should work fine.
Could be a problem with my setup, thought I should report about this.
TypeError: Class constructor ApolloError cannot be invoked without 'new'
at new NonCriticalError (/usr/src/app/src/errors.ts:25:42)
at /usr/src/app/src/resolvers/deposits.ts:54:13
at step (/usr/src/app/src/resolvers/deposits.ts:52:23)
at Object.next (/usr/src/app/src/resolvers/deposits.ts:33:53)
at /usr/src/app/src/resolvers/deposits.ts:27:71
at new Promise (<anonymous>)
at __awaiter (/usr/src/app/src/resolvers/deposits.ts:23:12)
at deposit (/usr/src/app/src/resolvers/deposits.ts:72:16)
at field.resolve (/usr/src/app/node_modules/graphql-extensions/src/index.ts:274:18)
at field.resolve (/usr/src/app/node_modules/apollo-server-core/src/utils/schemaInstrumentation.ts:103:18)
The text was updated successfully, but these errors were encountered:
I encountered with this error in the docker container logs. It is related to the
ApolloError
class not being called with thenew
keyword. But that doesn't actually seem to be the case.In src/errors.ts (line 25),
NonCriticalError
class extends theApolloError
class.In the src/resolvers/deposit.ts (line 54), calls the extended
NonCriticalError
class with thenew
keyword. So it should work fine.Could be a problem with my setup, thought I should report about this.
The text was updated successfully, but these errors were encountered: