Zip file is not found while build using npm run build

Product/components used and version/fix level are you on:

components

Detailed explanation of the problem:

I downloaded the cumulocity-kpi-trend-widget zip file, and I did some code customization based on my requirements. Then I tried to build the file using npm run build. The build was done, and I created a dist file, but I didn’t see any .zip file for upload instead I found many folders could please help me to fix the issue

Error messages / full error message screenshot / log fileL

Is your question related to the free trial, or to a production (customer) instance?

production

Have you installed all the latest fixes for the products and systems you are using?

yes

Instead of downloading the zip file which is the optimized built version for deployment you should clone this repo:

git clone https://github.com/SoftwareAG/cumulocity-kpi-trend-widget.git

Make your changes.
Do a proper build c8ycli build or npm run buildwhich will create a “dist” folder.
Either deploy it with c8ycli deploy or create a zip file of everything in the “dist”.
Make sure to not select the apps folder but all files and directories where the cumulocity.json is located.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.