Umbraco 17 custom dashboard error when following tutorial

Hi,

I’m following the tutorial to create a custom dashboard so I have installed Vite as in the instructions and then created the welcome-dashboard.element.ts as per the Creating a Custom Dashboard | CMS | Umbraco Documentation

However when I build the vite project that creates my js file and then run my Umbraco site, I get the following error when the back end loads

image

Does anyone know what I am doing wrong?

Hi @Pete0000 ,

Would you please paste your tsconfig.json file contents.

Regards,
Shekhar

Hi,

I found my issue - I was running “vite build” instead of “npm run build” - seems to have solved my issue - not sure why though as the npm run build just runs vite build!