# Resolving TypeScript Module Path Issues in @zoom/react-native-videosdk's package.json

**URL:** <https://devforum.zoom.us/t/resolving-typescript-module-path-issues-in-zoom-react-native-videosdks-package-json/101861>\
**Category:** Video SDK\
**Created:** [January 16, 2024, 12:25am UTC](https://devforum.zoom.us/t/resolving-typescript-module-path-issues-in-zoom-react-native-videosdks-package-json/101861 "2024-01-16T00:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![takao.narikawa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/takao.narikawa/32/55626_2.png) [@takao.narikawa](https://devforum.zoom.us/u/takao.narikawa)\
**Post date:** [January 16, 2024, 12:25am UTC](https://devforum.zoom.us/t/resolving-typescript-module-path-issues-in-zoom-react-native-videosdks-package-json/101861/1 "2024-01-16T00:25:48Z")

</div>

### Format Your New Topic as Follows:

- **SDK Type:** React Native Video SDK
- **Version:** 1.9.5

**Description**  
I would like to report an issue with the `package.json` configuration in the `@zoom/react-native-videosdk` package. Specifically, there’s an issue with the module resolution paths in TypeScript, which are incorrectly pointing to non-existent directories.

**Error?**  
The error encountered is a module resolution failure in TypeScript. The `package.json` lists paths such as `lib/commonjs`, `lib/module`, and `lib/typescript` for the `main`, `module`, and `types` fields respectively. However, these directories do not exist in the package, leading to module resolution errors.

**Troubleshooting Routes**

- Checked the actual structure of the `@zoom/react-native-videosdk` package.
- Found that the specified directories (`lib/commonjs`, `lib/module`, and `lib/typescript`) are not present.
- Tested module resolution by updating the paths in `package.json`.

**How To Reproduce**

1. Install the `@zoom/react-native-videosdk` package in a React Native project using TypeScript.
2. Attempt to import and use the SDK.
3. Encounter module resolution errors due to the incorrect paths specified in `package.json`.

The specific changes proposed are:

- Update the `package.json` to point to the correct source directory for the `main`, `module`, and `types` fields. The proposed change is as follows:

```auto
"main": "src/index",
"module": "src/index",
"types": "src/index",

```

This issue is particularly crucial for TypeScript users, as it prevents the proper use of the SDK. By updating the paths in `package.json` , TypeScript integration can be significantly improved, facilitating smoother development experiences for a wider range of developers.
