Stuck building gatsby-starter-netlify-cms












1















I recently switched from react static to gatsby & hit a wall. When I install & build gatsby-starter-netlify-cms I get an error:



success open and validate gatsby-configs — 0.049 s
success load plugins — 1.757 s
success onPreInit — 53.736 s
success delete html and css files from previous builds — 0.013 ssuccess initialize cache — 0.725 s
success copy gatsby files — 4.323 s
success onPreBootstrap — 0.261 s
success source and transform nodes — 1.672 s
success building schema — 6.302 s
success createPages — 0.634 s
success createPagesStatefully — 0.525 s
success onPreExtractQueries — 0.211 s
success update schema — 1.565 s
error GraphQL Error Field "image" must not have a selection since type "String" has no subfields.

file: C:/Users/Jason/Dropbox/Documents/Projects/jamamuuga-s-portfolio-gatsby-netlifycms/src/templates/product-page.js

1 |
2 | query ProductPage($id: String!) {
3 | markdownRemark(id: { eq: $id }) {
4 | frontmatter {
5 | title
> 6 | image {
| ^
7 | childImageSharp {
8 | fluid(maxWidth: 2048, quality: 100) {
9 | ...GatsbyImageSharpFluid
10 | }
11 | }
12 | }
13 | heading
14 | description
15 | intro {
16 | blurbs {

error Command failed with exit code 1.


I tried with both yarn & npm seperately to no avail.










share|improve this question























  • Check this; github.com/gatsbyjs/gatsby/issues/4123

    – Habil
    Nov 15 '18 at 14:35











  • Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

    – Jamamuuga
    Nov 15 '18 at 21:11
















1















I recently switched from react static to gatsby & hit a wall. When I install & build gatsby-starter-netlify-cms I get an error:



success open and validate gatsby-configs — 0.049 s
success load plugins — 1.757 s
success onPreInit — 53.736 s
success delete html and css files from previous builds — 0.013 ssuccess initialize cache — 0.725 s
success copy gatsby files — 4.323 s
success onPreBootstrap — 0.261 s
success source and transform nodes — 1.672 s
success building schema — 6.302 s
success createPages — 0.634 s
success createPagesStatefully — 0.525 s
success onPreExtractQueries — 0.211 s
success update schema — 1.565 s
error GraphQL Error Field "image" must not have a selection since type "String" has no subfields.

file: C:/Users/Jason/Dropbox/Documents/Projects/jamamuuga-s-portfolio-gatsby-netlifycms/src/templates/product-page.js

1 |
2 | query ProductPage($id: String!) {
3 | markdownRemark(id: { eq: $id }) {
4 | frontmatter {
5 | title
> 6 | image {
| ^
7 | childImageSharp {
8 | fluid(maxWidth: 2048, quality: 100) {
9 | ...GatsbyImageSharpFluid
10 | }
11 | }
12 | }
13 | heading
14 | description
15 | intro {
16 | blurbs {

error Command failed with exit code 1.


I tried with both yarn & npm seperately to no avail.










share|improve this question























  • Check this; github.com/gatsbyjs/gatsby/issues/4123

    – Habil
    Nov 15 '18 at 14:35











  • Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

    – Jamamuuga
    Nov 15 '18 at 21:11














1












1








1








I recently switched from react static to gatsby & hit a wall. When I install & build gatsby-starter-netlify-cms I get an error:



success open and validate gatsby-configs — 0.049 s
success load plugins — 1.757 s
success onPreInit — 53.736 s
success delete html and css files from previous builds — 0.013 ssuccess initialize cache — 0.725 s
success copy gatsby files — 4.323 s
success onPreBootstrap — 0.261 s
success source and transform nodes — 1.672 s
success building schema — 6.302 s
success createPages — 0.634 s
success createPagesStatefully — 0.525 s
success onPreExtractQueries — 0.211 s
success update schema — 1.565 s
error GraphQL Error Field "image" must not have a selection since type "String" has no subfields.

file: C:/Users/Jason/Dropbox/Documents/Projects/jamamuuga-s-portfolio-gatsby-netlifycms/src/templates/product-page.js

1 |
2 | query ProductPage($id: String!) {
3 | markdownRemark(id: { eq: $id }) {
4 | frontmatter {
5 | title
> 6 | image {
| ^
7 | childImageSharp {
8 | fluid(maxWidth: 2048, quality: 100) {
9 | ...GatsbyImageSharpFluid
10 | }
11 | }
12 | }
13 | heading
14 | description
15 | intro {
16 | blurbs {

error Command failed with exit code 1.


I tried with both yarn & npm seperately to no avail.










share|improve this question














I recently switched from react static to gatsby & hit a wall. When I install & build gatsby-starter-netlify-cms I get an error:



success open and validate gatsby-configs — 0.049 s
success load plugins — 1.757 s
success onPreInit — 53.736 s
success delete html and css files from previous builds — 0.013 ssuccess initialize cache — 0.725 s
success copy gatsby files — 4.323 s
success onPreBootstrap — 0.261 s
success source and transform nodes — 1.672 s
success building schema — 6.302 s
success createPages — 0.634 s
success createPagesStatefully — 0.525 s
success onPreExtractQueries — 0.211 s
success update schema — 1.565 s
error GraphQL Error Field "image" must not have a selection since type "String" has no subfields.

file: C:/Users/Jason/Dropbox/Documents/Projects/jamamuuga-s-portfolio-gatsby-netlifycms/src/templates/product-page.js

1 |
2 | query ProductPage($id: String!) {
3 | markdownRemark(id: { eq: $id }) {
4 | frontmatter {
5 | title
> 6 | image {
| ^
7 | childImageSharp {
8 | fluid(maxWidth: 2048, quality: 100) {
9 | ...GatsbyImageSharpFluid
10 | }
11 | }
12 | }
13 | heading
14 | description
15 | intro {
16 | blurbs {

error Command failed with exit code 1.


I tried with both yarn & npm seperately to no avail.







graphql gatsby netlify-cms






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 3:26









JamamuugaJamamuuga

61




61













  • Check this; github.com/gatsbyjs/gatsby/issues/4123

    – Habil
    Nov 15 '18 at 14:35











  • Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

    – Jamamuuga
    Nov 15 '18 at 21:11



















  • Check this; github.com/gatsbyjs/gatsby/issues/4123

    – Habil
    Nov 15 '18 at 14:35











  • Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

    – Jamamuuga
    Nov 15 '18 at 21:11

















Check this; github.com/gatsbyjs/gatsby/issues/4123

– Habil
Nov 15 '18 at 14:35





Check this; github.com/gatsbyjs/gatsby/issues/4123

– Habil
Nov 15 '18 at 14:35













Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

– Jamamuuga
Nov 15 '18 at 21:11





Thanks, I wish I could fix it myself, maybe following @pieh's suggestion. Since I am not familiar enough with the code base to fix it just yet, I went and filed an issue: github.com/netlify-templates/gatsby-starter-netlify-cms/issues/….

– Jamamuuga
Nov 15 '18 at 21:11












1 Answer
1






active

oldest

votes


















0














You should check your markdown files and find files which have empty values for the field image, or values that point to non existing image. Frontmatter of a markdown file referes to the top of the file which containes some metadata of the file and is surrounded with ---. For example:



---



image:



//my coment: list of some other variables follow, like heading, title....



---






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311982%2fstuck-building-gatsby-starter-netlify-cms%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You should check your markdown files and find files which have empty values for the field image, or values that point to non existing image. Frontmatter of a markdown file referes to the top of the file which containes some metadata of the file and is surrounded with ---. For example:



    ---



    image:



    //my coment: list of some other variables follow, like heading, title....



    ---






    share|improve this answer




























      0














      You should check your markdown files and find files which have empty values for the field image, or values that point to non existing image. Frontmatter of a markdown file referes to the top of the file which containes some metadata of the file and is surrounded with ---. For example:



      ---



      image:



      //my coment: list of some other variables follow, like heading, title....



      ---






      share|improve this answer


























        0












        0








        0







        You should check your markdown files and find files which have empty values for the field image, or values that point to non existing image. Frontmatter of a markdown file referes to the top of the file which containes some metadata of the file and is surrounded with ---. For example:



        ---



        image:



        //my coment: list of some other variables follow, like heading, title....



        ---






        share|improve this answer













        You should check your markdown files and find files which have empty values for the field image, or values that point to non existing image. Frontmatter of a markdown file referes to the top of the file which containes some metadata of the file and is surrounded with ---. For example:



        ---



        image:



        //my coment: list of some other variables follow, like heading, title....



        ---







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 8 at 15:35









        Saša ŠijakSaša Šijak

        3,84523057




        3,84523057
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311982%2fstuck-building-gatsby-starter-netlify-cms%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Error while running script in elastic search , gateway timeout

            Adding quotations to stringified JSON object values