Uncaught (in promise) TypeError: Cannot read properties of null (reading 'appendChild')

In the developer console, I see this

Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘appendChild’)
at L._preBuild (pickr.js:196:27)
at new L (pickr.js:125:14)
at L.eval [as create] (pickr.js:176:32)
at eval (SettingsTab.ts:642:23)
at e.then (app.js:1:1433742)
at SettingsTab.createPickrSetting (SettingsTab.ts:641:8)
at SettingsTab.display (SettingsTab.ts:136:10)
at SettingsSearch.getTabResources (plugin:settings-search:229:15)
at SettingsSearch.buildPluginResources (plugin:settings-search:129:12)
at eval (plugin:settings-search:131:29)

Is there something I can do to prevent this error message?

Similar: Error opening Obsidian. Cannot read properties of null (reading 'parent')