warn Warning: there are unknown plugin options for “gatsby-remark-images”: sizeByPixelDensityPlease open an issue

2023/07/27

Gatsby.js で、下記のような Warning が出た。

warn Warning: there are unknown plugin options for "gatsby-remark-images": sizeByPixelDensity
Please open an issue at https://ghub.io/gatsby-remark-images if you believe this option is valid.

どうやら、 sizeByPixelDensity のオプションが非推奨になったことでこの Warning が出たらしい。

https://www.gatsbyjs.com/plugins/@redocly/gatsby-remark-images/

もうこのオプションは見てないらしいです。

なので、削除してしまいましょう。

options: {
  // sizeByPixelDensity: true,
},

これで、Warning も消えました!

© 2015 - 2023 Okuda Kouki