# Cannot find name 'LocalCacheConfigParams'

**URL:** <https://community.sendbird.com/t/cannot-find-name-localcacheconfigparams/7757>\
**Category:** JavaScript\
**Created:** [July 4, 2023, 8:01am UTC](https://community.sendbird.com/t/cannot-find-name-localcacheconfigparams/7757 "2023-07-04T08:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Topf](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/florian_topf/32/4243_2.png) [@Florian\_Topf](https://community.sendbird.com/u/Florian_Topf)\
**Post date:** [July 4, 2023, 8:01am UTC](https://community.sendbird.com/t/cannot-find-name-localcacheconfigparams/7757/1 "2023-07-04T08:01:25Z")

</div>

**[Problem/Question]**  
I have upgraded my project from the SDK v3 to v4 and now I am having a hard time compiling the project. First I had this issue, that I was missing a react-native (!) peer dependency:

> [@Cannot find module '@react-native-async-storage/async-storage' or its corresponding type declarations.](https://community.sendbird.com/t/cannot-find-module-react-native-async-storage-async-storage-or-its-corresponding-type-declarations/5419):
>
> Getting build error when trying to build a react project which includes @sendbird/Chat package. any help to fix this would be really appreciated. node\_modules/@sendbird/chat/lib/\_\_definition.d.ts:1:31 - error TS2307: Cannot find module ‘@react-native-async-storage/async-storage’ or its corresponding type declarations. 1 import type AsyncStorage from ‘@react-native-async-storage/async-storage’;

However my project still doesn’t compile:

```shell
Error: node_modules/@sendbird/chat/lib/__definition.d.ts:563:69 - error TS2304: Cannot find name 'LocalCacheConfigParams'.

563 constructor({ maxSize, clearOrder, customClearOrderComparator }?: LocalCacheConfigParams);

```

* * *

**[SDK Version]**  
Javascript SDK Version 4.9.3

**[Reproduction Steps]**

- Install SDK v4 in a Javascript project.
- Add peer dependency mentioned above.
- Compile project. (typescript 4.7.4)

Error mentioned above should be shown.

**[Frequency]**  
Always

**[Current impact]**  
Project not building
