We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting the following error when building Typedefs in Apollo Server:
return typeDef.definitions.some(definition => definition.kind === language_1.Kind.DIRECTIVE_DEFINITION && ^ TypeError: Cannot read property 'some' of undefined
I tried to follow some solutions from here #2961 but still, I am getting the error.
This is how I am creating the schema:
fs.readdirSync(__dirname) .filter(dir => { console.log('dir', dir); return dir.indexOf('.') < 0 }) .forEach((dir) => { const tmp = require(path.join(__dirname, dir)).default; resolvers = merge(resolvers, tmp.resolvers); typeDefs.push(tmp.types); }); const schema = new ApolloServer({ typeDefs, resolvers, playground: { endpoint: '/graphql', settings: { 'editor.theme': 'light' } } });
Version:
"apollo-server-express": "^2.18.2", "graphql-tools": "^6.2.4",
I opened this repo to reproduce the error https://github.com/chrisjaimes/apollo-server-error. What could I be missing?
The text was updated successfully, but these errors were encountered:
Closing this issue after making a few changes a getting a working solution: https://stackoverflow.com/questions/64285400/error-when-building-typedefs-typeerror-cannot-read-property-some-of-undefined/64288307#64288307
Sorry, something went wrong.
No branches or pull requests
I am getting the following error when building Typedefs in Apollo Server:
I tried to follow some solutions from here #2961 but still, I am getting the error.
This is how I am creating the schema:
Version:
I opened this repo to reproduce the error https://github.com/chrisjaimes/apollo-server-error. What could I be missing?
The text was updated successfully, but these errors were encountered: