---
title: How do I resolve a 'process.env.CI = true' error?
description: Information on resolving a 'process.env.CI = true' error.
url: /kb/guide/how-do-i-resolve-a-process-env-ci-true-error
canonical_url: "https://vercel.com/kb/guide/how-do-i-resolve-a-process-env-ci-true-error"
last_updated: 2026-07-16
authors: Sam Ko
related:
  - /docs/concepts/projects/environment-variables
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

The `Treating warnings as errors because process.env.CI = true.` error is a build error that can appear with [create-react-app](https://create-react-app.dev/) builds. In summary, React warnings are being treated as build errors. This article covers how you can bypass this build error.

## Why this Happens

When the "Automatically expose [System Environment Variables](https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables)" setting is checked in the project's [**Environment Variables**](https://vercel.com/docs/concepts/projects/environment-variables#declare-an-environment-variable) [settings](https://vercel.com/docs/concepts/projects/environment-variables#declare-an-environment-variable), the Environment Variable with the **Name** as `CI` and with the **Value** as `true` is exposed. This causes create-react-app to treat React warnings as build errors.

## How to Resolve

If you wish to change these errors back to warnings, add an [Environment Variable](https://vercel.com/docs/concepts/projects/environment-variables) to the Environment Variables UI with the **Name** as `CI` and the **Value** as `false`. This will override the System Environment Variable. Once added, redeploy your project.