# Dashboard in Custom cockpit app over cli broken?

**URL:** <https://community.cumulocity.com/t/dashboard-in-custom-cockpit-app-over-cli-broken/15316>\
**Category:** Forum\
**Tags:** app-enablement, cockpit, custom-application\
**Created:** [October 28, 2026, 8:26am UTC](https://community.cumulocity.com/t/dashboard-in-custom-cockpit-app-over-cli-broken/15316 "2026-10-28T08:26:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.boenisch](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/david.boenisch/32/32411_2.png) [@david.boenisch](https://community.cumulocity.com/u/david.boenisch)\
**Post date:** [October 28, 2026, 8:26am UTC](https://community.cumulocity.com/t/dashboard-in-custom-cockpit-app-over-cli-broken/15316/1 "2026-10-28T08:26:20Z")

</div>

Hello everbody,

after updating my custom cockpit app to \> 1024.20, I’m having a problem with the dashboards. They won’t load, and all I see is a loading bar.

I downloaded a completely new app and replaced all the sources. Same problem.

After a long search, I added the import `import ‘@c8y/ng1-modules/dashboard2/cumulocity.json’;` to ng1.ts, and it’s working again.

Am I missing something? Or is this import actually necessary?

Best regards, David

> **[codex](https://cumulocity.com/codex/quick-start/your-first-application/overview)**

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [November 20, 2026, 1:30pm UTC](https://community.cumulocity.com/t/dashboard-in-custom-cockpit-app-over-cli-broken/15316/2 "2026-11-20T13:30:45Z")

</div>

Hi @david.boenisch,

sorry for the late reply.

What kind of customizations did you apply to your custom cockpit app?  
I would be especially interested in any differences in the [`ng1.ts` file](https://github.com/Cumulocity-IoT/cockpit/blob/v1024.20.0/src/ng1.ts)..

Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![lauraparker](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lauraparker](https://community.cumulocity.com/u/lauraparker)\
**Post date:** [November 20, 2026, 2:14pm UTC](https://community.cumulocity.com/t/dashboard-in-custom-cockpit-app-over-cli-broken/15316/3 "2026-11-20T14:14:42Z")

</div>

That import is likely required in a custom hybrid cockpit: ng1.ts is the entry point that pulls AngularJS modules into the bundle, and dashboard2’s cumulocity.json registers the dashboard module. The stock cockpit includes it through its own ng1 bootstrap; when you replace sources in a new app, that registration can be lost, leaving the dashboard spinner. Comparing ng1.ts with the stock cockpit should confirm.
