# Could not find a declaration file for module 'joi'

**URL:** <https://forum.codewithmosh.com/t/could-not-find-a-declaration-file-for-module-joi/10101>\
**Category:** Node\
**Created:** [January 21, 2022, 12:18am UTC](https://forum.codewithmosh.com/t/could-not-find-a-declaration-file-for-module-joi/10101 "2022-01-21T00:18:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zac](https://avatars.discourse-cdn.com/v4/letter/z/87869e/32.png) [@Zac](https://forum.codewithmosh.com/u/Zac)\
**Post date:** [January 21, 2022, 12:18am UTC](https://forum.codewithmosh.com/t/could-not-find-a-declaration-file-for-module-joi/10101/1 "2022-01-21T00:18:20Z")

</div>

Essentially, this got printed onto my console whenever I tried using Joi :

> `ReferenceError: Joi is not defined`

For reference, I am on Windows using Joi@13.1.0 . It doesn’t just not work on one project, but all the projects from this Node course that uses Joi. I didn’t find out about this issue before because I was using Linux before.

Ps: The title is the error message that is shown on VSCode. I redownloaded Joi just before making this post incase any packages may have fallen through somehow, no luck.
