# Local build was successful but build at Netlify is not working

**URL:** <https://answers.netlify.com/t/local-build-was-successful-but-build-at-netlify-is-not-working/13203>\
**Category:** Support\
**Tags:** building, gatsby\
**Created:** [April 24, 2020, 1:04pm UTC](https://answers.netlify.com/t/local-build-was-successful-but-build-at-netlify-is-not-working/13203 "2020-04-24T13:04:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [April 24, 2020, 4:24pm UTC](https://answers.netlify.com/t/local-build-was-successful-but-build-at-netlify-is-not-working/13203/2 "2020-04-24T16:24:43Z")

</div>

Hi there, thanks for that! I know the log output is a little hard to read, but here is where the big problem begins:

```auto
2:25:37 PM: failed Building production JavaScript and CSS bundles - 47.224s

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../../../elements/Button/Button' in '/opt/build/repo/src/components/Compare/CompareForm/CompareInputs'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../../elements/Button/Button' in '/opt/build/repo/src/components/ContactCompany/Inputs'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../../elements/Button/Button' in '/opt/build/repo/src/components/ContactForm/ContactInputs'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../../elements/Button/Button' in '/opt/build/repo/src/components/ContactForm/PregnancyInputs'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../../elements/Button/Button' in '/opt/build/repo/src/components/SideForm/SideFormInputs'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../../elements/Button/Button' in '/opt/build/repo/src/components/Compare'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../Button/Button' in '/opt/build/repo/src/elements/RightCard'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/pages'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/templates'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/templates'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve '../components/Layout/Layout' in '/opt/build/repo/src/templates'

2:25:37 PM: error Generating JavaScript bundles failed

2:25:37 PM: Can't resolve './informationCard.module.css' in '/opt/build/repo/src/components/ContactCompany/InformationCard'

2:25:37 PM: not finished run queries - 47.301s

```

If you look at the paths you will see things like `Layout/Layout` and `Button/Button` which looks like paths are always duplicated. I am not sure why exactly this is, but this may be part of the problem.

Frequently, when customers report that things work locally but fail on deploy it is actually an issue with case:

> [@\[Support Guide\] Netlify app builds locally but fails on deploy (case sensitivity)](https://answers.netlify.com/t/common-issue-problems-with-case-sensitivity-while-building-on-netlify/10754):
>
> Last updated by Netlify Support: July 2025 Are you struggling to understand why your project runs locally but errors out with missing files or logs that point toward issues with case when you try and build on Netlify? You are not alone. Often, case (as in: UPPERCASE or lowercase letters in filenames or paths) can cause problems. Here is a guide to understanding how case sensitivity issues present themselves, why they arise, and how you can fix them! 1. Errors you might see Case sensitivity iss…

---

_[View the full topic](https://answers.netlify.com/t/local-build-was-successful-but-build-at-netlify-is-not-working/13203)._
