https://github.com/nuxt/nuxt.js/blob/dev/packages/webpack/src/builder.js#L150
process.env.ci is truethrow the error
return the Promise.reject but no catch
For now, the workaround is using the module https://github.com/echoulen/nuxt-build-error-catch-plugin to catch the Promise.reject
Oh just got the same issue.
I am using GitLab CI, didn't even notices, but it seems that GitLab CI automatically defines this CI environment variable. As result my build exited without error, but produced no build. I was wondering, what is happening, because I didn't noticed error on my local machine...
This is kinda not good... I expect that CI Pipeline fails, if build is not generated properly. Please fix it
We just ran into the same issue. I solved it by setting build.quiet to false.
Here you can see an example of the build being green, without any error, while our master branch was currently broken at the time: https://gitlab.com/gitlab-org/design.gitlab.com/-/jobs/252288505

Here is the commit, where I turned on build.quiet: false: https://gitlab.com/gitlab-org/design.gitlab.com/-/jobs/252363564

So in summary, our SCSS compilation failed and it didn't lead to build errors, because build.quiet is per default true on CI which leads to this error.
My tone might sound a bit harsh, not intended, just didn't have my coffee yet 馃槅 Thank you for the great work on nuxt!
/cc @clarkdo
I鈥檒l have a look shortly