23rd Sep 2022

engine "node" is incompatible with this module

I recently tried to update my headshot on my portfolio, however after pushing to github on my pr I noticed my build were failing because of the issue below.


This was weird because all I had done was replace an image. After doing some research I came to discover that all I had to do was specify the node engine my site uses in the package.json like this πŸ‘‡

"engines": {
    "node": ">=16.0.0"

Sanity's markdown images

For a while now, I assumed there was something wrong with Sanity's image processor because whenever I uploaded images through the markdown tool, they would come back smaller and of poor quality. What I didn't know was that there was a width parameter at the end of the image link that I could use to adjust the width of my image πŸ€¦πŸΎβ€β™‚οΈ