Umbraco 15.1.2 Backoffice Typescript not detecting...
# help-with-umbraco
a
In a custom backoffice section, I am getting typescript errors where it cannot detect exports from @Umbraco-cms/backoffice/extension-registry. TSC throws a fit, but it I just npm build without tsc, it seems to work fine. Am I doing something wrong? https://cdn.discordapp.com/attachments/1338540874422026313/1338541261279199243/image.png?ex=67ab7531&is=67aa23b1&hm=4ac28ffc59f4062c3c9ae38553bab68354a66ff87c3972a2f34a0ad7ee4c020d&
k
That's a breaking change from v14 to v15. the manifests are now not exported like that anymore 😦
instead everything can be done under
UmbExtensionManifest
e.g replace
ManifestSection
with
UmbExtensionManifest
in most cases that's all you need to do (and remove the imports)
you might also need to add the following to the tsconfig.json file. (in the compilerOptions bit)
Copy code
"types": ["@umbraco-cms/backoffice/extension-types"]
a
Thanks! That was an easier fix that I thought. For those going down the same path, remove the old imports that are throwing errors, then add the line @Kevin Jump shared to your tsconfig.json. If using visual studio, you can then hover over problem areas and let it auto-import the correct imports for you. Works now. Here is what my manifest.ts file looks like now, no errors: https://cdn.discordapp.com/attachments/1338540874422026313/1338548781565743114/image.png?ex=67ab7c32&is=67aa2ab2&hm=857806d99747dae2e188cf4495d092134d540638933cb8885838feeb17275ac2&
22 Views