Skip to content

Cannot read property 'split' of undefined #9

@tareefdev

Description

@tareefdev

I'm trying to move my blog from Hugo to Gatsby using orga. So I cloned the repo, installed the packages, built the site, and it works flawlessly. Then I started to move my files (~350) to the site as groups (20 ones each time), build and see if everything looks OK!

Sometimes I get the following error while building:

 ERROR #85901  GRAPHQL

There was an error in your GraphQL query:

Cannot read property 'split' of undefined

   1 | query BlogPostQuery($id: String!) {
   2 |   orgContent(id: {eq: $id}) {
>  3 |     html
     |     ^
   4 |     metadata {
   5 |       title
   6 |       date
   7 |     }
   8 |   }
   9 | }
  10 |

File path: /home/tareef/projects/gatsby-orga/src/templates/post.js
Url path: /about_read1
Plugin: none

It doesn't seem that it's about a specific file (about-read in this case), as the error happens unevenly. Sometimes gatsby clean solved it but many time doesn't.

What do you suggest to investigate the issue more deeply and found the reason behind it.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions