Closed PeterDekkers closed 2 years ago
If I add a call to installTwicPics
in my page template, then it does start working.
Hi @PeterDekkers
Thank you for opening an issue.
It is curious. It should work (see https://twicpics-gatsby-demo.netlify.app/twicPlaceholder ).
I have just created a small start-up project here https://github.com/mbgspcii/TwicPicsxGatsby-starter. Can you try to run it?
Eventually, can you give me the version of gatsby used and send me a copy of your configuration file?
Best regards.
Miguel
Hello @mbgspcii. Thank you for setting up the project. It works perfectly, including placeholders. Feel free to close this issue. If I find out why the issue occurs in my codebase I will add an update here.
My Gatsby version is also 4.19.2
, just like your starter. The config also looked very similar to the starter config. My site is however an established website with many more moving parts.
Hi @PeterDekkers.
Thank you for your feedback.
Glad it worked out.
I'm closing the issue but I'll keep an eye out for any news.
Best regards.
Miguel
Using
"@twicpics/components": "^0.8.2"
and Gatsby I can't seem to configure a placeholder. I understand that it should be rendering as a background image, but none is present.The warning
domain has not been configured
shows in the console (I believe it comes from here), even though the domain has been configured ingatsby-config.ts
and the main image does load correctly using thebar.twic.pics
domain.... outputs...
I assume that this is a bug relating to the Gatsby integration.