Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.39k stars 1.98k forks source link

WooCommerce new product editor (beta): Add block button causes editor to crash #90667

Open jp-imagines opened 2 months ago

jp-imagines commented 2 months ago

Quick summary

The "new product editor (beta)" allows for creating WooCommerce products using the block editor. With Gutenberg v18.3.0 installed and active, clicking the new block (+) button in the "full editor" experience causes the editor to crash to a blank screen.

Steps to reproduce

  1. Start with a site with WooCommece installed.
  2. Enable the new product editor (beta) experience from WooCommerce > Settings (or Settings > WooCommerce on an Entrepreneur plan site) > Advanced > Features.
  3. Go to WooCommerce > Products (or Products on Entrepreneur).
  4. Add a new product or edit an existing product.
  5. Click on the Description field, then click the Full editor button to bring up the block editor.
  6. Click the + button at the top left.

What you expected to happen

New block/pattern dialog should open.

What actually happened

Editor crashes without visible error messages, showing just a blank screen.

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Console errors:

LKV9qx.png

TypeError: e.focusSearch is not a function
Uncaught TypeError: e.focusSearch is not a function
Plugin "wc-admin-more-menu" is not registered.
Uncaught TypeError: Cannot read properties of null (reading 'querySelector')

Workarounds:

jp-imagines commented 2 months ago

Initial report here: 8184637-zd-a8c

github-actions[bot] commented 2 months ago

Support References

This comment is automatically generated. Please do not edit it.

rickmgithub commented 2 months ago

📌 REPRODUCTION RESULTS

📌 FINDINGS/SCREENSHOTS/VIDEO

Replicated as per the OP description I tested on two different sites with WooC In my case I went to create a new product on both sites and the editor just hung. With the feature off, it worked as expected

📌 ACTIONS

Triaged

alaczek commented 4 days ago

I tested it today on an Atomic site, and while the editor didn't hung at any point, when I clicked on Patterns, there were none, which does feel like a bug:

Image