DEV Community

Discussion on: [Solved] “Treating warnings as errors because of process.env.CI = true”

kelahkelah profile image

Thanks. This solved the problem for me.
I used yarn and already had a yarn.lock file so automatically the Build command already had 'yarn build' so all i did was add CI = to the yarn build and it worked.
Build command: CI= yarn build.

But for npm it would be
Build command: CI= npm run build