cloudinary-community / gatsby-transformer-cloudinary

Use Cloudinary images with gatsby-image for high performance and total control!
https://gatsby-transformer-cloudinary.netlify.app/
MIT License
69 stars 28 forks source link

warning [gatsby-transformer-cloudinary] No metadata for ... gatsbyImageData will resolve to null #239

Closed amcc closed 1 year ago

amcc commented 1 year ago

It is possible to suppress these warnings. For a site we're building we're getting over 3000 warnings like this which sometimes seems to be causing the build to fail.

Checking a few of the culprits. They're videos, or other non-image files, so nothing is wrong really.

using gatsby@5.9.1 and gatsby-transformer-cloudinary@4.4.0

raae commented 1 year ago

Sure, I'll look into making them only appear with the verbose flag, maybe. Or configure them to be turned off.

amcc commented 1 year ago

Thanks!

On 20 Jun 2023, at 16:53, Benedicte Raae @.***> wrote:

Sure, I'll look into making them only appear with the verbose flag, maybe. Or be able to turn them off.

— Reply to this email directly, view it on GitHub https://github.com/cloudinary-devs/gatsby-transformer-cloudinary/issues/239#issuecomment-1599068173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4EX5PNCD6QCB3D63KGI3XMHBQ3ANCNFSM6AAAAAAZNJGSFQ. You are receiving this because you authored the thread.

raae commented 1 year ago

Added logLevel to the resolver so one can do to only get logs for errors and above, will be released this weekend:


          gatsbyImageData(
            height: 200
            backgroundColor: "#BADA55"
            logLevel: "error"
          )
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: