JavaScript for WordPress Forums Gatsby Error: Must provide Source. Received …

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #138841
    indigotree
    Participant

    Hey Peeps,

    First of all thanks for the awesome content, much appreciated.

    I’m going through the Headless WP w Gatsby course but I got stuck at the end of the “Creating Gatsby Pages from WordPress Pages – Part 2” video.

    My code yields a “Error: Must provide Source. Received …” in terminal

    It points out something is wrong in gatsby-node.js:10:11
    https://github.com/eugelogic/zacpress/blob/master/gatsby-node.js#L10

    I’m not a JS guru so I can’t really work out what it is, I’ve watched the two videos twice and I believe all the codeI got is the same as Zac’s.

    Can you please shed some light?

    Cheers,

    Eugene

    #138860
    indigotree
    Participant

    Hello again,

    Sorry I’ve been updating the repository to where the link in the first message is leading to.

    This is where the error is according to terminal
    https://www.dropbox.com/s/0bt4lii0bm1nz0g/Screen%20Shot%202020-03-16%20at%2021.45.15.png?dl=0

    Look forward to hearing from you 🙂

    #138862
    Zac Gordon
    Keymaster

    That error likely means that it can’t find the source of a function or file. That would be the place to start, making sure that the files and functions are actually imported.

    #138863
    indigotree
    Participant

    Hey Zac,

    Thanks for getting back to me.

    I have checked all the code a few times over and I cannot seem to find anything out of place.

    I don’t suppose you host the code of the tutorials on a public repository?

    Mine lives here https://github.com/eugelogic/zacpress can you spot anything wrong?

    Eugene

    #138864
    Zac Gordon
    Keymaster
    #138867
    indigotree
    Participant

    Hey Zac,

    Thanks for sharing, that was very useful!

    I did eventually find what it was, I had a foreign keyword in my query :-/

    #138880
    Zac Gordon
    Keymaster

    Glad you got it sorted!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.