# Importing @dhis2/ui error

**URL:** <https://community.dhis2.org/t/importing-dhis2-ui-error/45605>\
**Category:** App Development\
**Tags:** ui\
**Created:** [7 January 2022 10:40 UTC](https://community.dhis2.org/t/importing-dhis2-ui-error/45605 "2022-01-07T10:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orly\_MUGWANEZA](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/orly_mugwaneza/32/33394_2.png) [@Orly\_MUGWANEZA](https://community.dhis2.org/u/Orly_MUGWANEZA)\
**Post date:** [7 January 2022 10:40 UTC](https://community.dhis2.org/t/importing-dhis2-ui-error/45605/1 "2022-01-07T10:40:17Z")

</div>

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/5/5/55255642ba9e04c2159b87d2f1674e68f7e10746.png)  
I want to use dhis2/ui library in developing DHIS2 APP react app. While importing the dhis2/ui, I get the following error when I hover over the three dots:

```auto
Could not find a declaration file for module '@dhis2/ui'. 'C:/Users/Administrator/myapp/node_modules/@dhis2/ui/build/cjs/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/dhis2__ui` if it exists or add a new declaration (.d.ts) file containing `declare module '@dhis2/ui';`ts(7016)
  Try `npm i --save-dev @types/dhis2__ui` if it exists or add a new declaration (.d.ts) file containing `declare module '@dhis2/ui';`ts(7016)

```

Any help would be appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![nnkogift](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/nnkogift/32/42239_2.png) [@nnkogift](https://community.dhis2.org/u/nnkogift)\
**Post date:** [7 January 2022 17:34 UTC](https://community.dhis2.org/t/importing-dhis2-ui-error/45605/2 "2022-01-07T17:34:47Z")

</div>

Hello @Orly_MUGWANEZA

It seems you are using typescript to develop your app if I’m not mistaken. Unfortunately, the `@dhis2/ui` library does not have types yet. To get rid of that error you can create a `d.ts` file (`index.d.ts`, for example) anywhere in the `src` directory (I recommend in the src folder itself, or in a new folder) of your app and within that file declare the module as:

```auto
declare module "@dhis2/ui";

```

You can do this for any package/library that does not have types.
