Skip to content
New issue

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

Error: Schema must contain uniquely named types but contains multiple types named "RemarkHeadingLevels" #59

Closed
JesusPerez opened this issue Nov 13, 2019 · 3 comments · Fixed by #69

Comments

@JesusPerez
Copy link

JesusPerez commented Nov 13, 2019

node -v v12.13.0
npm -v 6.13.0
MacOS Catalina or Linux

Just simply runs:

npm install
yarn upgrade
npm build 

Initializing plugins...
Load sources - 0.19s
Error: Schema must contain uniquely named types but contains multiple types named "RemarkHeadingLevels".
at typeMapReducer (/gridsome-portfolio-starter/node_modules/graphql/type/schema.js:262:13)
at Array.reduce ()
at typeMapReducer (/gridsome-portfolio-starter/node_modules/graphql/type/schema.js:285:34)
at typeMapReducer (/gridsome-portfolio-starter/node_modules/graphql/type/schema.js:286:20)
at Array.reduce ()
at new GraphQLSchema (/gridsome-portfolio-starter/node_modules/graphql/type/schema.js:145:28)
at SchemaComposer.buildSchema (/gridsome-portfolio-starter/node_modules/graphql-compose/lib/SchemaComposer.js:131:12)
at Schema.buildSchema (/gridsome-portfolio-starter/node_modules/gridsome/lib/app/Schema.js:35:35)
at Plugins.createSchema (/gridsome-portfolio-starter/node_modules/gridsome/lib/app/Plugins.js:94:22)

@drehimself
Copy link
Owner

Yeah, I get this too when updating to the latest versions of vue-remark and/or transformer-remark (that's why I didn't merge the PRs). I will take a look at this when I have time, or if you/someone figures it out, let me know!

@rolbr
Copy link

rolbr commented Nov 22, 2019

I'm also getting this. Doesn't seem to be a problem with this repo though, as it's also occuring on the main project: gridsome/gridsome#815

@distinctperspective
Copy link

Its happening to me even after downgrading vue.remark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants