Closed gyurisc closed 3 years ago
Figured this one out, if I remove parameter placeholder:TRACED_SVG from gatsbyImageData then the error does not happen. It would be nice to figure out why this is happening though as it was working before
image {
localFiles {
childImageSharp {
gatsbyImageData(placeholder: TRACED_SVG, layout: CONSTRAINED)
}
}
}
Preliminary Checks
Description
When running gatsby develop on my machine I get the following error:
C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53 throw ex; ^
Error: w and h must be numbers at Jimp.call (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\utils\src\index.js:15:13) at Jimp.apply [as scanQuiet] (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:1223:23) [as scan] (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:1144:23) (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\potrace\lib\Potrace.js:1048:14)
at Timeout._onTimeout (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:223:9)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
Emitted 'error' event on Jimp instance at:
at Jimp.emitMulti (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:441:10)
at Jimp.emitError (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:445:10)
at Jimp. [as scan] (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\@jimp\core\src\index.js:1153:12)
at Jimp.
at Potrace._processLoadedImage (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\potrace\lib\Potrace.js:1005:11)
at Jimp.
at Potrace._processLoadedImage (C:\Users\Krisztian Gyuris\dev\projects\melyiket2\node_modules\potrace\lib\Potrace.js:1005:11)
[... lines matching original stack trace ...] at processTimers (internal/timers.js:492:7) { methodName: 'scan', eventName: 'error' }
I started seeing this when added the image plugin to my project:
and using the following in my graphql query:
If I am commenting out the image section from my graphql query then the error is not thrown.
I can try to build a reproduction project if needed
Reproduction Link
https://github.com/gyurisc/gatsby-bug-repro
Steps to Reproduce
...
Expected Result
It builds without any issues
Actual Result
I am seeing this error and the development server is not starting
Environment
Config Flags
not using any flags