diff --git a/packages/gatsby/src/utils/develop.js b/packages/gatsby/src/utils/develop.js index 9d70651f614c6..0c81ac3e94bfe 100644 --- a/packages/gatsby/src/utils/develop.js +++ b/packages/gatsby/src/utils/develop.js @@ -14,7 +14,6 @@ const copyStaticDirectory = require(`./copy-static-directory`) const developHtml = require(`./develop-html`) const { withBasePath } = require(`./path`) const report = require(`../reporter`) -const { formatStaticBuildError } = require(`../reporter/errors`) // Watch the static directory and copy files to public as they're added or // changed. Wait 10 seconds so copying doesn't interfer with the regular @@ -47,8 +46,8 @@ async function startServer(program) { There was an error compiling the html.js component for the development server. See our docs page on debugging HTML builds for help https://goo.gl/yL9lND - - ` + formatStaticBuildError(err) + `, + err ) })