VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
407 stars 63 forks source link

Error after install GraphQL plugin #78

Closed cassianpry closed 2 years ago

cassianpry commented 2 years ago

$ strapi develop [2021-10-12T22:36:12.239Z] debug ⛔️ Server wasn't able to start properly. [2021-10-12T22:36:12.241Z] error Error: There can be only one type named "ComponentPageQuestionInput".

Field "ComponentPageQuestionInput.question" can only be defined once.

Field "ComponentPageQuestionInput.answer" can only be defined once.

There can be only one type named "editComponentPageQuestionInput".

Field "editComponentPageQuestionInput.id" can only be defined once.

Field "editComponentPageQuestionInput.question" can only be defined once.

Field "editComponentPageQuestionInput.answer" can only be defined once. at assertValidSDL (/home/cas/Development/api/node_modules/graphql/validation/validate.js:107:11) at Object.buildASTSchema (/home/cas/Development/api/node_modules/graphql/utilities/buildASTSchema.js:45:34) at Object.buildSchemaFromTypeDefinitions (/home/cas/Development/api/node_modules/graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js:25:28) at makeExecutableSchema (/home/cas/Development/api/node_modules/graphql-tools/dist/makeExecutableSchema.js:26:29) at Object.generateSchema (/home/cas/Development/api/node_modules/strapi-plugin-graphql/services/schema-generator.js:101:18) at Object.initialize (/home/cas/Development/api/node_modules/strapi-plugin-graphql/hooks/graphql/index.js:76:74) at /home/cas/Development/api/node_modules/strapi/lib/hooks/index.js:37:28 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

cassianpry commented 2 years ago

nevermind, i had a component and a text field named question.