-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-drupal] Cannot read property 'map' of undefined #22724
Comments
@smthomas want to take a look at this? If @robdecker used one of recent versions the error would happen in here: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-drupal/src/utils.js#L150-L152 (converting dist line from error to src line) And it might happen that |
I am able to replicate this issue and am currently working on a fix. |
Our team has worked on this, and have created a couple patches that seem to be working well.
cc: @arshad |
This one is on NODE DELETE and should most probably happen on the Drupal side. The Drupal module should be updated to send an empty payload on delete. We'll send a patch on drupal.org. |
The Delete will need to happen on the Drupal side. I created a stub issue in the Drupal.org issue queue and will follow up on this there. It will require changes to the Drupal module and to the gatsby-source-drupal plugin. |
Looks good. Thanks @smthomas |
Description
I'm using the Gatsby Cloud live preview. The build compiles fine, and the preview functionality works. When creating a new Drupal node and Gatsby Cloud attempts to rebuild, it fails/crashes. A manual restart of the live preview works.
This is a blocker since I can't expect the client to restart the live preview after each new Drupal node.
Expected result
The build should complete, and the new Drupal node should be preview-able.
Actual result
Environment
I only see this on live preview, and not on my local.
The text was updated successfully, but these errors were encountered: