# Can't deploy next.js site

**URL:** <https://answers.netlify.com/t/cant-deploy-next-js-site/76358>\
**Category:** Support\
**Tags:** building, deployment\
**Created:** [September 27, 2022, 6:44am UTC](https://answers.netlify.com/t/cant-deploy-next-js-site/76358 "2022-09-27T06:44:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Melvin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/melvin/32/23606_2.png) [@Melvin](https://answers.netlify.com/u/Melvin)\
**Post date:** [October 5, 2022, 12:09pm UTC](https://answers.netlify.com/t/cant-deploy-next-js-site/76358/6 "2022-10-05T12:09:36Z")

</div>

From the error message:

`Module not found: Can't resolve '../lib/client' in '/opt/build/repo/components'`

Either the module isn’t in your repo or the filename is different than the one used in import statement.

This [support guide](https://answers.netlify.com/t/support-guide-netlify-app-builds-locally-but-fails-on-deploy-case-sensitivity/10754#h-2-why-does-this-happen-2) mentions issues that can be faced due to mixed case filenames. Could you double check the filenames to ensure they are there and correct?

---

_[View the full topic](https://answers.netlify.com/t/cant-deploy-next-js-site/76358)._
