How not to treat typical warnings as errors with Travis for React

I’m developing an application in React, with Travis continuous integration system. When executing the process, Travis complains about warnings, and fails to compile because it indicates:

Treating warnings as errors because
process.env.CI = true.

Most CI servers set it automatically.

```Failed to compile.````

I tried to modify the .travis.yml file and add the rule warnings_are_errors: false as well

Hello again @SolarUltima,

Try changing the following in your .travis.yml file to:

CI=true

to

CI=false yarn build

Sounds like you are trying to deploy on CloudFront, with a provider of S3 possibly from the sounds of it, try that and that should solve the issue.

1 Like

this worked thank you again @Montana