# MongoDB issue please, help

**URL:** <https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631>\
**Category:** React\
**Created:** [October 4, 2022, 11:19am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631 "2022-10-04T11:19:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yalovechik](https://avatars.discourse-cdn.com/v4/letter/y/7feea3/32.png) [@Yalovechik](https://forum.codewithmosh.com/u/Yalovechik)\
**Post date:** [October 4, 2022, 11:19am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/1 "2022-10-04T11:19:57Z")

</div>

Hello, Guys.

Who might be wondering to help me with MongoDB compass?  
on an attempt to connect vidly-api-node with the MongoDB server I am watching a number of mistakes that do not allow me to launch it correctly.

Error: Cannot find module ‘joi’  
Require stack:

- /Users/Narkolog-Mac/vidly-api-node/models/genre.js
- /Users/Narkolog-Mac/vidly-api-node/seed.js  
at Function.Module.\_resolveFilename (node:internal/modules/cjs/loader:956:15)  
at Function.Module.\_load (node:internal/modules/cjs/loader:804:27)  
at Module.require (node:internal/modules/cjs/loader:1028:19)  
at require (node:internal/modules/cjs/helpers:102:18)  
at Object. (/Users/Narkolog-Mac/vidly-api-node/models/genre.js:1:13)  
at Module.\_compile (node:internal/modules/cjs/loader:1126:14)  
at Object.Module.\_extensions…js (node:internal/modules/cjs/loader:1180:10)  
at Module.load (node:internal/modules/cjs/loader:1004:32)  
at Function.Module.\_load (node:internal/modules/cjs/loader:839:12)  
at Module.require (node:internal/modules/cjs/loader:1028:19) {  
code: ‘MODULE\_NOT\_FOUND’,  
requireStack: [  
‘/Users/Narkolog-Mac/vidly-api-node/models/genre.js’,  
‘/Users/Narkolog-Mac/vidly-api-node/seed.js’  
]  
}  
Narkolog-Mac@MacBook-Pro-Ivan vidly-api-node %

---

<div class="post-metadata">

**Author:** ![onlyhasbi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/onlyhasbi/32/4608_2.png) [@onlyhasbi](https://forum.codewithmosh.com/u/onlyhasbi)\
**Post date:** [October 4, 2022, 1:26pm UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/2 "2022-10-04T13:26:40Z")

</div>

1. Make sure Joi is installed, check your packages.json on the dependency list

```auto
npm i joi

```

1. at the top of your genre.js

```auto
const joi = require('joi');

```

---

<div class="post-metadata">

**Author:** ![Island](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@Island](https://forum.codewithmosh.com/u/Island)\
**Post date:** [October 5, 2022, 12:07am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/3 "2022-10-05T00:07:52Z")

</div>

I had the same issue and I tried to install joi but I still have a problem

---

<div class="post-metadata">

**Author:** ![Island](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@Island](https://forum.codewithmosh.com/u/Island)\
**Post date:** [October 5, 2022, 12:17am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/4 "2022-10-05T00:17:54Z")

</div>

I’m looking forward from anyone to help me regarding above issue. thanks.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/87432f5ff4a3b91e317bfe58f1a3d94499b63f73.png)

---

<div class="post-metadata">

**Author:** ![onlyhasbi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/onlyhasbi/32/4608_2.png) [@onlyhasbi](https://forum.codewithmosh.com/u/onlyhasbi)\
**Post date:** [October 5, 2022, 1:02am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/5 "2022-10-05T01:02:36Z")

</div>

try to double-check, the "joi " you define, and you write in somewhere (typo)

---

<div class="post-metadata">

**Author:** ![Island](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@Island](https://forum.codewithmosh.com/u/Island)\
**Post date:** [October 5, 2022, 4:15pm UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/6 "2022-10-05T16:15:40Z")

</div>

Hi, Thanks for your suggestion. I checked and everything seems fine. I reinstall the Jason file and still have the same error.

---

<div class="post-metadata">

**Author:** ![onlyhasbi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/onlyhasbi/32/4608_2.png) [@onlyhasbi](https://forum.codewithmosh.com/u/onlyhasbi)\
**Post date:** [October 6, 2022, 12:51am UTC](https://forum.codewithmosh.com/t/mongodb-issue-please-help/15631/7 "2022-10-06T00:51:31Z")

</div>

show me your genres code
