Took me a while to find a bug in my sourceNodes code, because errors are ignored in createRemoteFileNode inside processRemoteNode function.
I kept getting null back from createRemoteFileNode. So after some digging, I put a console.log directly into gatsby-source-filesystem inside my node_modules and see the error
error TypeError: createNodeId is not a function
at /home/bojan/www/instaset/website/node_modules/gatsby-source-filesystem/create-file-node.js:61:11
at Generator.next (<anonymous>)
at step (/home/bojan/www/instaset/website/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)
at _next (/home/bojan/www/instaset/website/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)
at run (/home/bojan/www/instaset/website/node_modules/core-js/library/modules/es6.promise.js:75:22)
at /home/bojan/www/instaset/website/node_modules/core-js/library/modules/es6.promise.js:92:30
at flush (/home/bojan/www/instaset/website/node_modules/core-js/library/modules/_microtask.js:18:9)
at process._tickCallback (internal/process/next_tick.js:61:11)
Maybe we can do something about that?
Took me a while to find a bug in my
sourceNodescode, because errors are ignored increateRemoteFileNodeinside processRemoteNode function.I kept getting
nullback fromcreateRemoteFileNode. So after some digging, I put a console.log directly into gatsby-source-filesystem inside my node_modules and see the errorMaybe we can do something about that?