-
Notifications
You must be signed in to change notification settings - Fork 6
"gatsby-plugin-extract-image-colors" threw an error while running the onCreateNode lifecycle #14
Copy link
Copy link
Open
Description
Hey,
Facing this issue while using gatsby-plugin-extract-image-colors and had no luck troubleshooting it. My implementation seems correct too as it runs fine on development server locally (despite the error showing) but fails to build.
I have already tried to add node-vibrant@3.2.0-alpha and reinstalled all dependencies
Any help would be greatly appreciated
Error Message
ERROR #11321 PLUGIN
"gatsby-plugin-extract-image-colors" threw an error while running the onCreateNode lifecycle:
Cannot read property 'Vibrant' of undefined
38 | yield Vibrant.from(node.absolutePath).getPalette((err, palette) => {
39 | const colors = {
> 40 | vibrant: getHex(palette.Vibrant._rgb),
| ^
41 | darkVibrant: getHex(palette.DarkVibrant._rgb),
42 | lightVibrant: getHex(palette.LightVibrant._rgb),
43 | muted: getHex(palette.Muted._rgb),Relevant GraphQL
frontmatter {
image {
colors {
...GatsbyImageColors
}
childImageSharp {
fluid(maxHeight: 450) {
...GatsbyImageSharpFluid_tracedSVG
}
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels