Closed Sidsector9 closed 1 year ago
I was able to replicate this. It cause by some images that are embedded in the patterns throwing CORs errors, eg. the background image in this pattern:
The FastAverageColor
is trying to retrieve the image in the background and failing. We can't guarantee that every image used in a pattern will be setting CORs correctly so we should add some exception handling to deal gracefully with this.
I wasn't able to replicate this now on trunk. I think this issue may have been fixed by recent changes to the way that the cover block handles image processing. Going to close, but feel free to reopen if you still get these errors on 6.4 or GB 17+
Partially related to #44320
Description
When using block inserter (one on the top-left of the block editor) to search for a block, multiple console errors are logged once the patters start to load.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
https://github.com/10up/block-components/assets/17757960/a3c9ebc5-6c15-46b6-8dc5-d9331c232918
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes