# Custom Widget Upload doesn't work

**URL:** <https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534>\
**Category:** Forum\
**Tags:** cumulocity-edge, cumulocity\
**Created:** [January 19, 2023, 10:54am UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534 "2023-01-19T10:54:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim.Haas](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Tim.Haas](https://community.cumulocity.com/u/Tim.Haas)\
**Post date:** [January 19, 2023, 10:54am UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/1 "2023-01-19T10:54:21Z")

</div>

#### What product/components do you use and which version/fix level are you on?

Cumulocity Edge 1013.0.143

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

production instance

#### What are you trying to achieve? Please describe it in detail.

I am trying to add a custom widget to Cumulocity. I followed the tutorial in the Web SDK documentation ([Cumulocity documentation](https://cumulocity.com/guides/web/tutorials/#add-a-custom-widget)). In the last step (npm start), I got an error message. How can I fix this error? Thank you in advance!

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

 ![FehlermeldungCustomWidget](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/f/9/f9b2c52698129f23873687a110ffdde0db5da3c4.png)

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

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [January 19, 2023, 11:08am UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/2 "2023-01-19T11:08:45Z")

</div>

Did you do ‘npm install’ in the project directory?  
If so, there should be a node\_modules directory with an @ngtoolsdirectory, which contains webpack directory.

---

<div class="post-metadata">

**Author:** ![Tim.Haas](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Tim.Haas](https://community.cumulocity.com/u/Tim.Haas)\
**Post date:** [January 20, 2023, 2:24pm UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/3 "2023-01-20T14:24:47Z")

</div>

Thank you for your answer. I did ‘npm install’ and the directory exists. Also the files in the error message are already created. Maybe there is a problem with the reading permissions?

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [January 20, 2023, 5:16pm UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/4 "2023-01-20T17:16:05Z")

</div>

I renamed my @ngtools directory and I got exactly your error…

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/f/5/f593e22e2282b59af82d77c1a1c563301b2cf5a0.png)

So for some reason yours must not be accessible.

---

<div class="post-metadata">

**Author:** ![Tim.Haas](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Tim.Haas](https://community.cumulocity.com/u/Tim.Haas)\
**Post date:** [January 24, 2023, 3:12pm UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/5 "2023-01-24T15:12:58Z")

</div>

Good to know. I still can’t figure out why the folder is not found. I got an example custom widget from a colleague, that is working. Maybe there is a difference in the file structure. Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [January 25, 2023, 7:14am UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/6 "2023-01-25T07:14:08Z")

</div>

> [@Tim.Haas](#):
>
> Good to know. I still can’t figure out why the folder is not found. I got an example custom widget from a colleague, that is working. Maybe there is a difference in the file structure. Thank you for your help!

I had the same issue some time ago and I cannot elaborate what was going wrong but I could resolve it by using npx and starting from scratch.

```auto
npx npm install
npx c8ycli server

```

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [July 24, 2023, 7:14am UTC](https://community.cumulocity.com/t/custom-widget-upload-doesnt-work/2534/7 "2023-07-24T07:14:27Z")

</div>

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