accounts-js / accounts

Fullstack authentication and accounts-management for Javascript.
https://www.accountsjs.com/
MIT License
1.5k stars 141 forks source link

Class constructor SchemaDirectiveVisitor cannot be invoked without 'new' at new AuthenticatedDirective in nextjs #1091

Closed edw19 closed 3 years ago

edw19 commented 3 years ago

when using the @auth directive in queries I get the message. Class constructor SchemaDirectiveVisitor cannot be invoked without 'new' at new AuthenticatedDirective. I am using nextjs 10 node 14, apollo-server-micro

image

pradel commented 3 years ago

@edw19 can you provide a repository showing the error so I can have a look?

pradel commented 3 years ago

@edw19 I actually found the issue, will create a fix for it today :)

pradel commented 3 years ago

Published a fix for this in v0.31.1