# Bug: index.d.ts is missing from the @zoomus/websdk package

**URL:** <https://devforum.zoom.us/t/bug-index-d-ts-is-missing-from-the-zoomus-websdk-package/32121>\
**Category:** Web\
**Created:** [October 4, 2020, 5:21pm UTC](https://devforum.zoom.us/t/bug-index-d-ts-is-missing-from-the-zoomus-websdk-package/32121 "2020-10-04T17:21:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossng](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@rossng](https://devforum.zoom.us/u/rossng)\
**Post date:** [October 4, 2020, 5:21pm UTC](https://devforum.zoom.us/t/bug-index-d-ts-is-missing-from-the-zoomus-websdk-package/32121/1 "2020-10-04T17:21:41Z")

</div>

**Description**

The index.d.ts file does not get packed into the @zoomus/websdk package that’s published to NPM. Since the file does actually exist in the repository, I guess this isn’t intentional.

Unfortunately it means that the Web SDK is currently broken in TypeScript projects. The good news is that it’s very easy to fix. In package.json, the files attribute needs to be set to:

`"files": ["dist/*", "index.d.ts"]`

**Error**  
`Could not find a declaration file for module '@zoomus/websdk'.`

**Which version?**  
1.8.1

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. In your project, run npm i @zoomus/websdk
2. Add `import { ZoomMtg } from "@zoomus/websdk";` to a TypeScript file.
3. Observe the error `Could not find a declaration file for module '@zoomus/websdk'.`

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 5, 2020, 9:02pm UTC](https://devforum.zoom.us/t/bug-index-d-ts-is-missing-from-the-zoomus-websdk-package/32121/2 "2020-10-05T21:02:19Z")

</div>

Hey @rossng,

Are you using the Web SDK with an Angular project?

If so, we do have an Angular Web SDK sample app:

> **[zoom/websdk-sample-angular](https://github.com/zoom/websdk-sample-angular)**
>
> Use the Zoom Web SDK in an Angular App. Contribute to zoom/websdk-sample-angular development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 5, 2020, 7:02am UTC](https://devforum.zoom.us/t/bug-index-d-ts-is-missing-from-the-zoomus-websdk-package/32121/3 "2020-11-05T07:02:22Z")

</div>

Closed on November 5, 2020, 7:02am UTC

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