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
After adding the plugin, I get the following error when trying to start the server:
$ strapi develop
[2021-09-14T16:24:34.575Z] debug ⛔️ Server wasn't able to start properly.
[2021-09-14T16:24:34.576Z] error GraphQLError: Syntax Error: Expected Name, found "}".
at syntaxError (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/error/syntaxError.js:15:10)
at Parser.expectToken (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:1413:40)
at Parser.parseName (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:98:22)
at Parser.parseFieldDefinition (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:879:21)
at Parser.optionalMany (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:1503:28)
at Parser.parseFieldsDefinition (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:868:17)
at Parser.parseObjectTypeDefinition (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:812:23)
at Parser.parseTypeSystemDefinition (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:708:23)
at Parser.parseDefinition (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:150:23)
at Parser.many (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:1523:26)
at Parser.parseDocument (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:115:25)
at Object.parse (/Users/ana/Projects/Sessions/backend/app/node_modules/graphql/language/parser.js:31:17)
at Object.addPolymorphicUnionType (/Users/ana/Projects/Sessions/backend/app/node_modules/strapi-plugin-graphql/services/type-builder.js:188:8)
at Object.generateSchema (/Users/ana/Projects/Sessions/backend/app/node_modules/strapi-plugin-graphql/services/schema-generator.js:43:35)
at Object.initialize (/Users/ana/Projects/Sessions/backend/app/node_modules/strapi-plugin-graphql/hooks/graphql/index.js:76:74)
at /Users/ana/Projects/Sessions/backend/app/node_modules/strapi/lib/hooks/index.js:37:28
Please find below the package.json depencencies object:
Hi @anatintescu@natanaelsimoes
I found the source of problems :) (we have to update the documentation), when I added support GQL I added configuration to add dynamic content types to support GQL, to resolve this problems you need add in configurations in ./config/plugins.js
example:
where comments will be related to articles, I can't add this dynamic based on model configuration because strapi does not always have here built content types :( - inconsistent
I am facing the same issue. I used version 1.0.1. Now with 1.0.2, I can't start the server anymore. Something I didn't expect when updating on patch-level.
Hi!
After adding the plugin, I get the following error when trying to start the server:
Please find below the package.json depencencies object:
I tried to add the plugin on an empty Strapi solution. It works fine until I add strapi-plugin-graphql.
The text was updated successfully, but these errors were encountered: