# Need help figuring out how to resolve errors with deploy

**URL:** <https://answers.netlify.com/t/need-help-figuring-out-how-to-resolve-errors-with-deploy/140709>\
**Category:** Support\
**Tags:** deployment\
**Created:** [February 27, 2025, 1:58am UTC](https://answers.netlify.com/t/need-help-figuring-out-how-to-resolve-errors-with-deploy/140709 "2025-02-27T01:58:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![beechwoodswimclubky](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/beechwoodswimclubky/32/67879_2.png) [@beechwoodswimclubky](https://answers.netlify.com/u/beechwoodswimclubky)\
**Post date:** [February 27, 2025, 1:58am UTC](https://answers.netlify.com/t/need-help-figuring-out-how-to-resolve-errors-with-deploy/140709/1 "2025-02-27T01:58:39Z")

</div>

- We need to know your netlify site name: beechwood-swim-club

- Build problems? Link or paste the FULL build log & build settings screenshot  

### Diagnosis

The build failure is due to an “Undefined variable” error in the SCSS file `src/scss/_theme.scss` at line 15 that is being triggered during the `npm run production` command.

### Solution

1. In the SCSS file `src/scss/_theme.scss` at [line 15](https://github.com/beechwoodswimclubky/BeechwoodSwimClub/blob/master/src/scss/_theme.scss#L15), there is an undefined variable `$stalfos-colors`.
2. Verify that the variable `$stalfos-colors` is defined or imported correctly in the SCSS file where it should be located. Make sure that the variable is defined before being used in this context.
3. If `$stalfos-colors` is a part of an external library or file, ensure that the package containing this variable is included in the `package.json` dependencies or the necessary file is committed to the repository.
4. After confirming the correct definition/import of `$stalfos-colors`, run the build command again to ensure the issue has been resolved.

I’m not proficient with the command line so any help with this issue would be very helpful!

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [February 27, 2025, 2:05am UTC](https://answers.netlify.com/t/need-help-figuring-out-how-to-resolve-errors-with-deploy/140709/2 "2025-02-27T02:05:18Z")

</div>

@beechwoodswimclubky You’ve already pasted in a diagnosis/solution that was presumably given to you by an AI.

Have you tried the solution that it proposes?

As it says, the error is **Undefined variable** for `$stalfos-colors`, which is visible here:

 ![image](https://global.discourse-cdn.com/netlify/original/3X/1/3/1365a1ad3b63c26f2274800ba57cc38bd0a335d5.jpeg)
