Problem
When I try to use entity browser for the field of the paragraphs it breaks
How to reproduce
1) Create a paragraphs type
2) Create an entity browser based on views
3) Create a media entity reference field
4) Set entity browser widget for this field
5) Create a paragraph field on some content (for example article)
6) Open to add a new article page node/add/article
7) Try to add a paragraph
Paragraph will not be added, because there is a warning Notice: Undefined index: drupalSettings in web/modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php on line 401
if I add a media entity reference field for article and set entity browser widget for. it will work normally
Comments
Comment #2
lobsterr commentedComment #3
lobsterr commentedThe problem was that I didn't save the settings for entity browser widget, but probably it would be nice save by default first selected entity browser to avoid the warning or handle the warning more proper way
Comment #4
dmegatool commentedThanks for posting the solution. Just stubbled on the issue and was able to fix right away. And yeah it should save by default. Can't expect users to know that. Let alone not forget it every once in a while.