Skip to content

Commit

Permalink
fix(gatsby-cli): re-add reporter._setStage as no-op function (#18797)
Browse files Browse the repository at this point in the history
* fix(gatsby-cli): re-add reporter._setStage as no-op function

* fix version range in comment
  • Loading branch information
pieh authored and GatsbyJS Bot committed Oct 18, 2019
1 parent ab90296 commit 22f3da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-cli/src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ const reporter: Reporter = {
span,
}
},
// This method was called in older versions of gatsby, so we need to keep it to avoid
// "reporter._setStage is not a function" error when gatsby@<2.16 is used with gatsby-cli@>=2.8
_setStage() {},
}

console.log = (...args) => reporter.log(util.format(...args))
Expand Down

0 comments on commit 22f3da7

Please sign in to comment.