Documentation location/URL
web/core/modules/big_pipe/js/big_pipe.js
Problem/Motivation
TypeError: Cannot read properties of null (reading 'nodeType')
this is in code
/**
* Checks if node is valid big pipe replacement.
*/
function checkMutation(node) {
return Boolean(
node.nodeType === Node.ELEMENT_NODE &&
node.nodeName === 'SCRIPT' &&
node.dataset &&
node.dataset.bigPipeReplacementForPlaceholderWithId &&
typeof drupalSettings.bigPipePlaceholderIds[
node.dataset.bigPipeReplacementForPlaceholderWithId
] !== 'undefined',
);
}
Proposed resolution
/**
* Checks if node is valid big pipe replacement fix.
*/
function checkMutation(node) {
return Boolean(
node &&
node.nodeType === Node.ELEMENT_NODE &&
node.nodeName === 'SCRIPT' &&
node.dataset &&
node.dataset.bigPipeReplacementForPlaceholderWithId &&
typeof drupalSettings.bigPipePlaceholderIds[
node.dataset.bigPipeReplacementForPlaceholderWithId
] !== 'undefined'
);
}
Remaining tasks
only need to change this to fix the error in js
Comments
Comment #2
avpadernoThis issue queue is for reporting changes that should be done on documentation guides, not to report bugs or issues on sites running on Drupal.