I’ve got a couple of custom packages that I’ve created and for a while now I’ve been getting errors when I run my site locally and I log in to the backoffice.
The packages work but it would be nice not to have a terminal full or red and yellow messages. I’ve no idea why I get these errors or when they started to appear so I’m hoping some of you clever lot can point me in the right direction.
When I do a npm run build on each individual package, I get zero issues, no warnings or errors, but when I run the site locally, I guess something goes on where Umbraco will register the packages. Once I log in to the backoffice, that’s when I get the screen below.
As I say, the packages work fine but clearly I’ve done something wrong and it would be nice to tidy this up.
This should help the TS compile “find” the correct types. You may also need to follow step 9 on there too to stop all of the @umbraco packages being bundled into your final build.