You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Live Preview setup with a local Gatsby development as per instruction here
When editing an entry and hit Cmd+S, my local Gatsby displays the following error
"gatsby-source-craft" threw an error while running the sourceNodes lifecycle:
Value of the ID field "sourceId" can't be nullish. Got object with keys:
remoteTypeName, remoteId
Digging a bit deeper, it seems to me that the alertGatsby function in Plugin.php does trigger on save but does not send the required element id. Making the following edit seems to resolve the error to me.
Happy to do a pull request if you think it's the root cause of the issue.
Steps to reproduce
Install and setup Gatsby Live Preview
Edit an entry then hit Cmd+S
Additional info
Craft version: Craft Pro 3.6.2
PHP version: 7.3.26
Database driver & version: MySQL 5.7.28
Plugins & versions: 1.0.0-beta.2
The text was updated successfully, but these errors were encountered:
Description
I have Live Preview setup with a local Gatsby development as per instruction here
When editing an entry and hit Cmd+S, my local Gatsby displays the following error
Digging a bit deeper, it seems to me that the
alertGatsby
function in Plugin.php does trigger on save but does not send the required element id. Making the following edit seems to resolve the error to me.Happy to do a pull request if you think it's the root cause of the issue.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: