Initially reported here: https://github.com/wikimedia/wikipedia-preview/issues/151
List of steps to reproduce (step by step, including full links if applicable):
- Activate the Wikipedia Preview Wordpress plugin
- Go to Admin / Appearance / Widgets
What happens?:
Error message: The editor has encountered an unexpected error.
The copy error link reveals
TypeError: Cannot read properties of undefined (reading 'PluginDocumentSettingPanel')
at WikipediaPreviewPostMetaDetectLinks (http://localhost:10003/wp-content/plugins/wikipediapreview-wordpress/build/index.js?ver=1.1.1:824:132)
at we (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293)
at zj (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:226:496)
at Th (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
at tj (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
at Te (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
at Ja (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:224:381)
at md (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:173:43)
at http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:175:222
at Rh (http://localhost:10003/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:147:64)What should have happened instead?:
The page should not error out and the "detect links" settings panel should not try to load.