[Breaking change]: Extension Manifest Ty...
# package-development
m
A question about this: https://github.com/umbraco/Announcements/issues/22 I'm replacing the use of
ManifestDashboard
with
UmbExtensionManifest
but VS Code complains about some of the properties. In "Screenshot 1" I'm just not explicitly typing the object to be a
UmbExtensionManifest
but then it complains about
element
, both VS Code and the TS compiler complain. Then if I add
as UmbExtensionManifest
after the object everything works. Has anyone else seen this? Can someone help me understand why? 🙂 https://cdn.discordapp.com/attachments/882984798719729704/1309164089280434186/extension_screenshot_1.png?ex=67409591&is=673f4411&hm=badeead7e3db24446a6836540ee660bc0ceb6eb7c8e049e5cbf733e8e1784d6d& https://cdn.discordapp.com/attachments/882984798719729704/1309164089649659935/extension_screenshot_2.png?ex=67409592&is=673f4412&hm=94c1dfcc05d6f0e5d473bd5f517cc338b202d00c502deec5429d6efdc2db79b7&
This is the error message: Object literal may only specify known properties, and 'element' does not exist in type 'ManifestBase'.ts(2353) https://cdn.discordapp.com/attachments/1309164089179901962/1309164872608518174/image.png?ex=6740964c&is=673f44cc&hm=32f6540a9c76d844e51f7cb7762fe0d423ab98af68f2725bdb4cdc0b76fab8de&
Okey. I solved it. My bad. I did put
Copy code
typescript
"types": [
   "@umbraco-cms/backoffice/extension-types"
]
In the "root" of
tsconfig.json
, while it should have been
Copy code
typescript
{
 "compilerOptions" : {
   "types": [
     "@umbraco-cms/backoffice/extension-types"
    ]
  }
}
After that adjustment, it works like a charm...
4 Views