Skip to content

Carousel Block crashes page if added when any other block is selected #59093

Closed

Description

Quick summary

Note 1: This is a CoBlocks Block - so probably needs to be posted on there once it has been triaged/reproduced.
Note 2: I have reproduced this on self-hosted and Atomic sites.

If you have a block already selected and then use the [ + ] button on the top left of the editor and choose Carousel Block the editor crashes with an error, The editor has encountered an unexpected error.

Error Log;

TypeError: Cannot read properties of null (reading 'removeChild')
    at h.componentWillUnmount (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/amp/assets/js/amp-block-editor.js?ver=2ee98517d90b7670631d2afc67df7285:31:1273)
    at Rh (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:148:43)
    at Sh (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:151:394)
    at Qj (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:174:181)
    at unstable_runWithPriority (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react.min.755b0ae9.js:24:26)
    at Za (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:73:8)
    at eb (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:170:163)
    at gf (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:162:317)
    at https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react-dom.min.edd8b7a6.js:73:230
    at unstable_runWithPriority (https://dwtestatbugherding.wpcomstaging.com/wp-content/plugins/gutenberg/vendor/react.min.755b0ae9.js:24:26)

Steps to reproduce

  1. Create a page or post.
  2. Add a block, any block. (tested Image, Heading, Paragraph)
  3. While that block is selected, click the [ + ] icon and choose Carousel Block.
  4. The page will crash and you can a The editor has encountered an unexpected error. message.

Video;

Screen.Capture.on.2021-12-11.at.13-14-29.mp4

What you expected to happen

Should be able to add the block without the editor crashing!

What actually happened

Editor Crashed when adding block.

Context

User Report.

Simple, Atomic or both?

Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

All

Available workarounds?

No response

Workaround details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    User ReportThis issue was created following a WordPress customer report[Feature] CoBlocksThe integration of GoDaddy's CoBlocks plugin on WordPress.com Atomic sites.[Pri] Normal[Type] Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions