Kevin Jump
10/14/2024, 5:27 AMUmbExtensionManifest
i am hitting a problem with custom icons and localization manifests.
Specifically.
ts
const icons: UmbExtensionManifest = {
type: 'icons',
alias: 'usync.icons',
name: 'uSync Icons',
js: () => import('./icons.js'),
};
now complains on build
src/icons/manifest.ts:5:2 - error TS2353: Object literal may only specify known properties, and 'js' does not exist in type 'ManifestBase'.
5 js: () => import('./icons.js'),
and for localization its similar but for the meta value.
ts
const localizations: Array<UmbExtensionManifest> = [
{
type: 'localization',
alias: 'usync.lang.enus',
name: 'English',
weight: 0,
meta: {
culture: 'en',
},
js: () => import('./files/en-us'),
}];
complains about meta
src/lang/manifest.ts:7:3 - error TS2353: Object literal may only specify known properties, and 'meta' does not exist in type 'ManifestBase'.
7 meta: {
~~~~
any clues.Kevin Jump
10/14/2024, 5:45 AMJacob Overgaard
10/14/2024, 6:33 AMJacob Overgaard
10/14/2024, 6:34 AMJacob Overgaard
10/14/2024, 6:34 AMJacob Overgaard
10/14/2024, 6:36 AMJacob Overgaard
10/14/2024, 6:38 AMjson
"compilerOptions": {
"types": ["@umbraco-cms/backoffice/extension-registry"]
}
but if you need more types, you can add them to the array:
json
"compilerOptions": {
"types": [
"@umbraco-cms/backoffice/extension-registry",
"@umbraco-cms/backoffice/icon",
"@umbraco-cms/backoffice/localization"
]
}
Kevin Jump
10/14/2024, 8:31 AMNiels Lyngsø
10/16/2024, 4:35 PMjson
"compilerOptions": {
"types": ["@umbraco-cms/backoffice/extension-types"]
}