Re-enable the old widget editor by disabling the new widget editor, delete the existing widgets, and re-enable the new widget editor.
Add this code to your theme’s functions.php file to disable the old widget editor:
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
There was an error. Cannot read properties of undefined (reading ‘map’)
Alternatively, use the Classic Widgets plugin to re-enable the old widget editor.
Block-based Widgets Editor in WordPress 5.8