Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

APIs Introduction to GraphQL Fetching Data with Queries Selecting Fields

Errors in the GraphQL Course - using Launchpad.GraphQL.com

There is automatically an error that appears even before I type a query. The error is listed below:


{ "code": 400, "error": "Script returned an error.", "details": "Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.", "name": "Error", "message": "Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.", "stack": "Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.\n at invariant (/data/_verquire/graphql/0.11.7/node_modules/graphql/jsutils/invariant.js:18:11)\n at validate (/data/_verquire/graphql/0.11.7/node_modules/graphql/validation/validate.js:59:72)\n at /data/_verquire/graphql/0.11.7/node_modules/graphql/graphql.js:69:51\n at new Promise (<anonymous>)\n at graphqlImpl (/data/_verquire/graphql/0.11.7/node_modules/graphql/graphql.js:59:10)\n at Object.graphql (/data/_verquire/graphql/0.11.7/node_modules/graphql/graphql.js:48:227)\n at /data/io/09e7f665-6009-48fb-9da1-acaa4ea2c1ff/webtask.js:144:26\n at <anonymous>\n at process._tickDomainCallback (internal/process/next_tick.js:228:7)"


I hope this issue does get resolved, as I am really so eager to learn GraphQL.

Thanks a lot.

My colleagues and I are having the same issue.

EDIT: Quick fix... copy the schema on the left panel and go to your own launchpad

Andrew Basore
Andrew Basore
Courses Plus Student 6,196 Points

I am having the same issue. I guess I will just follow along the video.

2 Answers

James Churchill
STAFF
James Churchill
Treehouse Teacher

Hello everyone!

As Kyle mentioned, you can workaround this issue by copying the provided Launchpad's GraphQL schema into a new Launchpad instance, or you can fork the provided Launchpad instance. Doing this refreshes the Launchpad instance's dependencies and sorts out the error in the process.

We'll also be working on updating the provided Launchpad instances so this workaround won't be necessary.

Thanks for your patience ~James

James Churchill
James Churchill
Treehouse Teacher

Michael,

Launchpad appears to be experiencing an issue that prevents you from being able to make changes to pads. I've contact Apollo (the company who maintains Launchpad) about the issue.

I know that it's less than a perfect solution, but if you're looking for a way to test schemas and queries, it is possible to download pads from Launchpad to your local dev environment.

Thanks ~James

James Churchill
STAFF
James Churchill
Treehouse Teacher

Hello everyone,

As of this post, Launchpad seems to be working again. Please let us know if you encounter any further issues.

Thanks ~James