How to fix Invariant Violation errors when running Gatsby build/develop #31657
Unanswered
AnderUstarroz
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using node v7.10.0, Gatsby v3.6.1 with plugins:
I have used the following function on file
gatsby-node.js
to create nodes in GraphQL with images that can be queried later on:This seems to work normally when running gatsby develop or gatsby build but if I try to run again any of those commands (with same source data) the following error is raised:
Those
27564a59-b..
,379357c0-1..
are the image node ids that were created on thegatsby-node.js
function.If I run
gatsby clean
it will work normally, but using gatsby clean is not a good solution because cleaning cache will break incremental builds.Does somebody know how to fix this error? should I use fixed ids for the nodes?
More details on:
Beta Was this translation helpful? Give feedback.
All reactions