Gatsby: Deprecation notice: "`formatError` is deprecated and replaced by `customFormatErrorFn`. It will be removed in version 1.0.0."

Created on 22 Aug 2019  路  3Comments  路  Source: gatsbyjs/gatsby

On a fresh install of [email protected], the following error message started showing up today:

`formatError` is deprecated and replaced by `customFormatErrorFn`. It will be removed in version 1.0.0.

It prints every second or two and doesn't seem to stop:

Screen Shot 2019-08-21 at 7 33 35 PM

I haven't dug into this at all, but it looks like something upstream?

bug

Most helpful comment

Thanks for opening this issue. We fixed it in [email protected]

All 3 comments

I fixed this by downgrading to 2.13.70 but from what I can tell the issue is caused here:

https://github.com/gatsbyjs/gatsby/blob/194a97c3854e3b8e4fcdd5b1eab1d72450dea867/packages/gatsby/src/commands/develop.js#L159-L173

It looks like 9e165476a0557a63dd6cc7098008e651134511cb caused this by updating the express-graphql version (#16873).

Or you may downgrade express-graphql by adding

  "resolutions": {
    "express-graphql":"0.7.1"
  },

in your package.json file.

Thanks for opening this issue. We fixed it in [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandonmp picture brandonmp  路  3Comments

totsteps picture totsteps  路  3Comments

signalwerk picture signalwerk  路  3Comments

timbrandin picture timbrandin  路  3Comments

hobochild picture hobochild  路  3Comments