January 2, 2021 at 3:52 am #148928
Looks like the way that you get the various sizes has changed again in Gutenberg and we now need to use the media_details object. Something like:
However i get this error:
Uncaught TypeError: can't access property "sizes", img.media_details is undefined
Any thoughts where I am going wrong?