Fix a failed build
When a deploy fails, your live site stays as it was: the last successful deploy keeps serving.
Read the build log
Section titled “Read the build log”Open the failed deploy (from your site’s Deploys tab, or the link in the failure email). The Build log is split into steps (Cloning repository, Installing dependencies, Building, Uploading…), and the step that failed is opened for you. For errors OneHostBox recognises, the reason at the top says what went wrong and how to fix it.
The Files tab of a successful deploy shows exactly what was published, which helps when a page or asset is missing.
Fix with AI
Section titled “Fix with AI”On a failed deploy, Fix with AI reads the log and your build settings (variable names only, never their values) and tells you what went wrong. If the fix is a setting or an environment variable, click Apply and redeploy. If it needs a code change, you get the steps to follow.
Common errors
Section titled “Common errors”| What the log says | How to fix it |
|---|---|
ERESOLVE (npm dependency conflict) |
Add the environment variable npm_config_legacy_peer_deps = true, or update the package that wants the older version. |
ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION |
pnpm refused packages published very recently. Deploy again once they’re a day old, or pin older versions and commit pnpm-lock.yaml. If you didn’t mean to use this rule, check minimumReleaseAge in pnpm-workspace.yaml or .npmrc. |
npm ci says the lockfile is out of sync |
Run npm install on your computer, commit the updated package-lock.json and push. |
Module not found / Failed to resolve import |
Check the file path and its capital letters: builds run on Linux, where Header.jsx and header.jsx are different files. If it’s a package, add it to package.json. |
Missing script: "build" |
Set the build command in Settings → Build settings to the script that builds your site. |
| Create React App: warnings treated as errors | Fix the warnings, or add the environment variable CI = false. |
JavaScript heap out of memory |
Add the environment variable NODE_OPTIONS = --max-old-space-size=1536. |
ERR_OSSL_EVP_UNSUPPORTED |
Add NODE_OPTIONS = --openssl-legacy-provider, or pick an older Node.js version. |
EBADENGINE |
Choose a Node.js version that matches your project in Settings → Build settings. |
command not found |
Add the package that provides it to package.json (development dependencies are installed too), or check the build command. |
| Publish directory was not found | Set the publish directory to the folder your build writes (dist, build, out…). For Next.js, set output: 'export' and use out. |
| Root directory was not found | Check the root directory in Settings matches a folder in the repository. |
| Couldn’t clone the repository | Check the branch exists and OneHostBox still has access to the repository (reconnect your Git account if needed). |
| Build timed out after 15 minutes | Speed up the build, or move large files out of the build. |
| The build ran out of memory | Add the NODE_OPTIONS variable above, or reduce what the build loads at once. |
| Output larger than 500 MB | Serve large media from storage built for it, not from the site. |
Try again
Section titled “Try again”After fixing your code, push a commit: it deploys automatically. After changing a setting or variable, click Retry deploy on the failed deploy (or Redeploy on any deploy) to build the same commit again.