Closed rhildred closed 2 years ago
I switched in to the project folder, deleted package-lock.json
, and did npm install
. Then I was able to finish. Now the front matter cover
images are coming up as strings and I am getting the error:
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/pages/index.js
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/pages/index.js
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/templates/post.js
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/templates/category.js
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/templates/category.js
There was an error in your GraphQL query:
Field "cover" must not have a selection since type "String" has no subfields.
This can happen if you e.g. accidentally added { } to the field "cover". If you didn't expect "cover" to be of type "String" make sure that your input source and/or plugin is correct.
However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned
"dummy content". Visit our docs to learn how you can define the schema for "undefined":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: C:/Users/rhildred/source/projects/Aug23my-ultronele/src/templates/tutorial.js
hi @rhildred thanks for trying out this project, unfortunately this project is no longer being maintained....so, i recommend you looking for other better alternatives for your blog, meanwhile i will have a try on rebuiding this project. If i succeeded, i'll let you know.
hi @rhildred :
I just rebuilt this project successfully in my Mac pc with this environment:
You may need to switch your local build tools into these version. for node version management, you could use nvm
, for python version, you could use pyenv
. uninstall the latest gatsby-cli and install v2.4.10 by:
npm i -g gatsby-cli@2.4.10
if you still have problems in building process, feel free to leave comments...
You are right:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
to install nvmnvm install 11.0.0
to get the right version of nodenpm install --vs2015 --global windows-build-tools
so that I could build sharp on windowsnpm i -g gatsby-cli@2.4.10
to get the same version of gatsby-cli.That was that. Thanks so much for your help.
Thank you very much for your windows solution! Good job! @rhildred
When I run
gatsby new my-ultronele https://github.com/runbytech/ultron-ele
I get node-gyp error 1 from msbuild while building sharp on windows. The demo on netlify still works.I made a starter blog with
gatsby new my-gatsby-project https://github.com/gatsbyjs/gatsby-starter-blog
successfully.This is the node-gyp error: