Skip to main content
Updated the description with image
Source Link
Sumit Bhatia
  • 5.9k
  • 2
  • 9
  • 25

Having an odd issue in Experience Editor (Sitecore 10.1.2, containers).

Intermittently, when adding a new component from the ribbon, EE will not respond and print the following to console:

Uncaught TypeError: Cannot read properties of null (reading 'parent')

This is looking for chrome.parent inside getChildChromes in the EE JS.

I can "fix" the issue by adding a safe-navigation operator between chrome and parent in my local instance. However, our deploy environments are containerized and we would have to fully replace the EE JS and customize the container to solve; that smells like the wrong solution.

[![chrome parent safe navigation][1]][1] [1]: https://i.sstatic.net/1Lcad.pngchrome parent safe navigation

I am struggling to see which components/chromes are causing the error, or even if there is are specific ones. Has anyone else seen this issue before?

Having an odd issue in Experience Editor (Sitecore 10.1.2, containers).

Intermittently, when adding a new component from the ribbon, EE will not respond and print the following to console:

Uncaught TypeError: Cannot read properties of null (reading 'parent')

This is looking for chrome.parent inside getChildChromes in the EE JS.

I can "fix" the issue by adding a safe-navigation operator between chrome and parent in my local instance. However, our deploy environments are containerized and we would have to fully replace the EE JS and customize the container to solve; that smells like the wrong solution.

[![chrome parent safe navigation][1]][1] [1]: https://i.sstatic.net/1Lcad.png

I am struggling to see which components/chromes are causing the error, or even if there is are specific ones. Has anyone else seen this issue before?

Having an odd issue in Experience Editor (Sitecore 10.1.2, containers).

Intermittently, when adding a new component from the ribbon, EE will not respond and print the following to console:

Uncaught TypeError: Cannot read properties of null (reading 'parent')

This is looking for chrome.parent inside getChildChromes in the EE JS.

I can "fix" the issue by adding a safe-navigation operator between chrome and parent in my local instance. However, our deploy environments are containerized and we would have to fully replace the EE JS and customize the container to solve; that smells like the wrong solution.

chrome parent safe navigation

I am struggling to see which components/chromes are causing the error, or even if there is are specific ones. Has anyone else seen this issue before?

Source Link

Experience Editor current chrome is null, crashes editor when referencing chrome.parent

Having an odd issue in Experience Editor (Sitecore 10.1.2, containers).

Intermittently, when adding a new component from the ribbon, EE will not respond and print the following to console:

Uncaught TypeError: Cannot read properties of null (reading 'parent')

This is looking for chrome.parent inside getChildChromes in the EE JS.

I can "fix" the issue by adding a safe-navigation operator between chrome and parent in my local instance. However, our deploy environments are containerized and we would have to fully replace the EE JS and customize the container to solve; that smells like the wrong solution.

[![chrome parent safe navigation][1]][1] [1]: https://i.sstatic.net/1Lcad.png

I am struggling to see which components/chromes are causing the error, or even if there is are specific ones. Has anyone else seen this issue before?