Niels Lyngsø
11/07/2025, 10:30 AMelement property of your Modal Manifest, has to be either a JS Class of the Web Component, or a path to the file holding that. Otherwise you can use elementName set it to a string containing the name of element you like to use. (just notice in this case that element needs to be loaded/registered by something else).
In other words, this is not valid to my knowledge:
element: html`...`
I would recommend this:
element: () => import('./the-file-name.js'),
Notice this needs the element to be exported as default or element (as seen in the referenced tutorial export const element = MyDialogElement;)
This is the alternative:
elementName: 'urltracker-redirect-name-of-your-element'Rayintu
11/07/2025, 10:46 AMManifestModal type:
javascript
Type '() => Promise<typeof import("<PATH_TO_FILE>/simpleRedirect-main.lit")>' is not assignable to type 'ElementLoaderProperty<UmbModalExtensionElement<any, any, ManifestModal> | UmbModalExtensionElement<any, never, ManifestModal> | UmbModalExtensionElement<...>> | undefined'.
Could that be relevant?
I have tried to export it both as default and as element (not at the same time).
https://cdn.discordapp.com/attachments/1436301872595075152/1436305665739194409/image.png?ex=690f1f63&is=690dcde3&hm=6a58578ebc0abc5f311c9f0d7e2e8240c5c6a288d1705e4eef4ff676d96ac029&Patrick de Mooij
11/07/2025, 10:49 AMPatrick de Mooij
11/07/2025, 10:51 AMRayintu
11/07/2025, 11:49 AMNiels Lyngsø
12/05/2025, 11:41 AMNiels Lyngsø
12/05/2025, 11:43 AM@umbraco-cms/backoffice/external/lit