Closed asode closed 3 years ago
Hi @asode,
would you create a small reproduction case for me? As I couldn't replicate it locally within my tests and have no current TS project.
Best,
Tim.
Hi and thanks for answering @timhagn,
Hi @asode, thanks for the quick reply & the reproduction repo! Should work, will look into it as soon as I can : )!
EDIT: add thanks for reproduction
Hi again, @asode!
Got the chance to look quickly into it & it seems that just an | undefined
was missing in convertToBgImage()
's types.
At least I got no more error & test were running through ^^.
Hope the just published gbimage-bridge v0.1.4
works for you (then feel free to close this issue : ).
Also published patch versions of gbi(-es5) @ 1.5.2
with bumped dependencies, btw.
Best,
Tim.
Hi there @timhagn,
what a fast fix that was! The error is gone now after updating the packages! :)
Thank you again! Keep up the good work.
Summary
By following the example on this project page (Gatsby 3 & gatsby-plugin-image) I'm getting a typescript error with
convertToBgImage
. However the example works just fine if I just ignore the error.The error:
Relevant information
Now you can get around this with
// @ts-ignore
and it works fine. Would be of course nice to get this fixed if possible. Am I doing something wrong here?Environment