# Amity-Social-Cloud-Web-Sample-Apps Getting error Module not found: Error: Can't resolve '@amityco/ui-kit-open-source'

**URL:** <https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896>\
**Category:** UIkit\
**Created:** [August 29, 2023, 8:06am UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896 "2023-08-29T08:06:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen.kumar](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@praveen.kumar](https://forum.social.plus/u/praveen.kumar)\
**Post date:** [August 29, 2023, 8:06am UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/1 "2023-08-29T08:06:37Z")

</div>

I’m following this document for setup UIkit in my document “[https://docs.amity.co/uikit/web/web-javascript-migration-guide](https://docs.amity.co/uikit/web/web-javascript-migration-guide)” but getting this error  
Module not found: Error: Can’t resolve ‘@amityco/ui-kit-open-source’ in ‘D:\Agile\_Office\_Work\Amity-Social-Cloud-Web-Sample-Apps\chat-simple-amity-m2\src’

Can anyone help me for this error?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 29, 2023, 12:37pm UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/2 "2023-08-29T12:37:17Z")

</div>

Hello, from the document, may we confirm, which method did you follow, 1 or 2 ? And what’s your current sdk version?

---

<div class="post-metadata">

**Author:** ![praveen.kumar](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@praveen.kumar](https://forum.social.plus/u/praveen.kumar)\
**Post date:** [August 29, 2023, 1:08pm UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/3 "2023-08-29T13:08:51Z")

</div>

I try both method but getting same error

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 29, 2023, 2:39pm UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/4 "2023-08-29T14:39:07Z")

</div>

Could you please try following the steps in this github: [GitHub - AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource: Amity Social Cloud offers Chat and Social SDKs to streamline app development. Dive into our UI Kits and sample apps in our repositories to spark your creativity. To learn more, visit amity.co.](https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource)

---

<div class="post-metadata">

**Author:** ![praveen.kumar](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@praveen.kumar](https://forum.social.plus/u/praveen.kumar)\
**Post date:** [August 30, 2023, 7:13am UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/5 "2023-08-30T07:13:07Z")

</div>

TypeError: Cannot read properties of null (reading ‘useState’)

useState

Amity-Social-Cloud-UIKit-Web-OpenSource/node\_modules/react/cjs/react.development.js:1433

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 30, 2023, 8:20am UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/6 "2023-08-30T08:20:16Z")

</div>

Hello @praveen.kumar it seems that the issue might be related to ‘useState’ within React, not the UIKit issue. We recommend conducting some research into the ‘useState’ implementation on your end to pinpoint the cause of the problem.

---

<div class="post-metadata">

**Author:** ![praveen.kumar](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@praveen.kumar](https://forum.social.plus/u/praveen.kumar)\
**Post date:** [August 30, 2023, 12:15pm UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/7 "2023-08-30T12:15:54Z")

</div>

@SocialPlus_Support But I’m not using useState. I created new simple project using “$ npx create-react-app my-react-app”  
and run project simple page worked but after the link, I got this error.

---

<div class="post-metadata">

**Author:** ![topAmity](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@topAmity](https://forum.social.plus/u/topAmity)\
**Post date:** [September 1, 2023, 7:21am UTC](https://forum.social.plus/t/amity-social-cloud-web-sample-apps-getting-error-module-not-found-error-cant-resolve-amityco-ui-kit-open-source/896/8 "2023-09-01T07:21:19Z")

</div>

Please link the UIKit open source with these following steps to prevent encounter issues

Here are the steps to install ui-kit together with another project.

1. git clone [git@github.com](mailto:git@github.com):AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
2. cd ./Amity-Social-Cloud-UIKit-Web-OpenSource
3. npm ci
4. npm link
5. npm link ./`<path-to-your-app>`/node\_modules/react ./`<path-to-your-app>`/node\_modules/react-dom
6. npm run build
7. cd ./`<path-to-your-app>`
8. npm link @amityco/ui-kit-open-source --save

\*\* We need to link react module to react module in destination project so that react is the same instance otherwise we will encounter [issues with react hook](https://medium.com/bbc-product-technology/solving-the-problem-with-npm-link-and-react-hooks-266c832dd019).
