DEV Community

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

Collapse
 
kelahkelah profile image
KelahKelah

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.
Like
Build command: CI= yarn build.

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