diff --git a/packages/next/build/index.js b/packages/next/build/index.js index dd43a2a9..29e818cc 100644 --- a/packages/next/build/index.js +++ b/packages/next/build/index.js @@ -46,7 +46,11 @@ function runCompiler (compiler) { return new Promise(async (resolve, reject) => { const webpackCompiler = await webpack(await compiler) webpackCompiler.run((err, stats) => { - if (err) return reject(err) + if (err) { + console.log({...err}) + console.log(...stats.errors) + return reject(err) + } const jsonStats = stats.toJson({ warnings: true, errors: true })