Building Error ERR! code ELIFECYCLE

Hi all.

I’m trying to build my application but not work.

9:55:10 AM: Build ready to start
9:55:42 AM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
9:55:42 AM: build-image tag: v3.3.7
9:55:42 AM: buildbot version: 134ec431c6a3ff76e87cc4dc34007fe13842272f
9:55:42 AM: Fetching cached dependencies
9:55:43 AM: Starting to download cache of 169.6MB
9:55:46 AM: Finished downloading cache in 3.469753859s
9:55:46 AM: Starting to extract cache
9:55:56 AM: Finished extracting cache in 10.463283858s
9:55:56 AM: Finished fetching cache in 13.987436454s
9:55:56 AM: Starting to prepare the repo for build
9:55:57 AM: Preparing Git Reference refs/heads/master
9:55:57 AM: Starting build script
9:55:57 AM: Installing dependencies
9:55:58 AM: Started restoring cached node version
9:56:04 AM: Finished restoring cached node version
9:56:05 AM: v10.20.1 is already installed.
9:56:05 AM: Now using node v10.20.1 (npm v6.14.4)
9:56:06 AM: Attempting ruby version 2.6.2, read from environment
9:56:07 AM: Using ruby version 2.6.2
9:56:08 AM: Using PHP version 5.6
9:56:08 AM: Started restoring cached node modules
9:56:08 AM: Finished restoring cached node modules
9:56:08 AM: Started restoring cached go cache
9:56:08 AM: Finished restoring cached go cache
9:56:08 AM: unset GOOS;
9:56:08 AM: unset GOARCH;
9:56:08 AM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
9:56:08 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:56:08 AM: go version >&2;
9:56:08 AM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
9:56:08 AM: go version go1.12 linux/amd64
9:56:08 AM: Installing missing commands
9:56:08 AM: Verify run directory
9:56:08 AM: Executing user command: npm run build
9:56:09 AM: > frontend@0.1.0 build /opt/build/repo
9:56:09 AM: > react-scripts build
9:56:11 AM: Creating an optimized production build…
9:56:28 AM: Treating warnings as errors because process.env.CI = true.
9:56:28 AM: Most CI servers set it automatically.
9:56:28 AM: Failed to compile.
9:56:28 AM: ./src/pages/Survey/index.js
9:56:28 AM: Line 128:18: ‘setPage’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 129:25: ‘setRowsPerPage’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 143:42: Expected ‘===’ and instead saw ‘==’ eqeqeq
9:56:28 AM: Line 179:23: Expected ‘===’ and instead saw ‘==’ eqeqeq
9:56:28 AM: Line 183:32: Expected ‘===’ and instead saw ‘==’ eqeqeq
9:56:28 AM: Line 222:12: ‘questoes’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 228:23: Expected to return a value in function array-callback-return
9:56:28 AM: ./src/pages/ResponseSurvey/index.js
9:56:28 AM: Line 2:10: ‘Link’ is defined but never used no-unused-vars
9:56:28 AM: Line 12:8: ‘TableContainer’ is defined but never used no-unused-vars
9:56:28 AM: Line 14:8: ‘TablePagination’ is defined but never used no-unused-vars
9:56:28 AM: Line 16:8: ‘Paper’ is defined but never used no-unused-vars
9:56:28 AM: Line 132:18: ‘setPage’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 133:25: ‘setRowsPerPage’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 134:12: ‘selectedValue’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 135:12: ‘linha’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 135:19: ‘setLinha’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 136:12: ‘respostas’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 138:12: ‘ro’ is assigned a value but never used no-unused-vars
9:56:29 AM: failed during stage ‘building site’: Build script returned non-zero exit code: 1
9:56:28 AM: Line 141:11: ‘handleChange’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 148:12: ‘questoes’ is assigned a value but never used no-unused-vars
9:56:28 AM: Line 148:22: ‘setQuestoes’ is assigned a value but never used no-unused-vars
9:56:28 AM: ./src/pages/Logon/index.js
9:56:28 AM: Line 2:10: ‘Link’ is defined but never used no-unused-vars
9:56:28 AM: Line 46:50: Expected ‘===’ and instead saw ‘==’ eqeqeq
9:56:28 AM: npm
9:56:29 AM: Shutting down logging, 34 messages pending

Hey! Apologies in advance for the following copy/paste response. If I don’t clear anything up and/or your problem persists, please do reply.

This build may have failed because of the introduction of an unplanned change to builds in the last 24 hours. In your failed deploy log, you may see the line: Treating warnings as errors because process.env.CI = true

Basically, this change would mean that your site won’t deploy if there’s warnings. Although we plan to introduce this in some capacity in the future, like most other CI platforms already have, now wasn’t the time and we’ve rolled this back.

TL;DR: if you re-deploy your site now, it should work! If not, please reply.

Thank you for solution.

It worked!