Hi all, First time posting here.
I have a global AdminSettings, when i add a custom component to the beforDocumentControls it is not being picked up by the importmap (even after running generate:importmap) . Which then triggers this error in the admin:
getFromImportMap: PayloadComponent not found in importMap {key: "@/components/BackupButton#BackupButton"PayloadComponent: "@/components/BackupButton#BackupButton"schemaPath: "@/components/BackupButton#BackupButton"} "You may need to run the `payload generate:importmap` command to generate the importMap ahead of runtime."
if i added the same component in the fields array of the global it does add it to the importmap:
{
type: "ui",
name: "manualBackupField",
admin: {
components: {
Field: "@/components/BackupButton#BackupButton",
},
},
},
if i have both in the global at the same time, the button in beforeDocumentControls appears correctly. i also tried importing in beforeDocumentControls with 'path' instead but that made no difference.