Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: warning for .svg images on sourcing #21

Open
julrich opened this issue Jul 17, 2021 · 0 comments
Open

fix: warning for .svg images on sourcing #21

julrich opened this issue Jul 17, 2021 · 0 comments
Labels
bug Something isn't working netlify-cms

Comments

@julrich
Copy link
Member

julrich commented Jul 17, 2021

The following warning is displayed for every sourced .svg image:

warn You can't use childImageSharp together with quote-dark.svg — use publicURL instead. The childImageSharp portion of the query in this file will return null: undefined

Maybe there's a fix for it? Like a conditional fragment, or something? Because image type for Markdown / Frontmatter fields can be either (rasterized vs svg).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working netlify-cms
Projects
None yet
Development

No branches or pull requests

1 participant