drehimself / gridsome-portfolio-starter

A simple portfolio theme for Gridsome powered by Tailwind CSS v1
https://gridsome-portfolio-starter.netlify.com
MIT License
375 stars 138 forks source link

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

Closed JesusPerez closed 4 years ago

JesusPerez commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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: https://github.com/gridsome/gridsome/issues/815

distinctperspective commented 4 years ago

Its happening to me even after downgrading vue.remark