Recently, started getting this error when trying to run
payload generate:graphQLSchema
:
payload/node_modules/graphql/utilities/printSchema.js:54
const directives = schema.getDirectives().filter(directiveFilter);
^
TypeError: Cannot read properties of undefined (reading 'getDirectives')
The full command I'm using is
dotenv payload generate:graphQLSchema
, and
PAYLOAD_CONFIG_PATH
is defined in .env, though I have also tried running it with
-v PAYLOAD_CONFIG_PATH=src/payload.config.ts
just to be sure.
I have generated the GraphQL schema successfully recently, so wondering if this looks familiar to anyone.
Fixed in 1.6.3
https://github.com/payloadcms/payload/releases/tag/v1.6.3@denolfe Thanks!
@denolfe I am getting a different error
const err = new MongooseError(message);
^
MongooseError: Operation
users.countDocuments()
buffering timed out after 10000ms
I updated to version 1.6.12
That typically indicates a connectivity issue to your mongo server
or a permissions issue