Pattern Import Failure y.values ().find is not a function. #65347
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Bug
An existing feature does not function as intended
Description
I exported my WordPress block pattern, tried to import the pattern on other WordPress site and got this error:
I validated the JSON at https://jsonlint.com/ and it is valid. File to be checked is here https://gist.github.com/jasperf/4747e963fc84871ea6f3482ddf37381e I added the custom line block it is used as must-use plugin as well as the cover filter and with those deactivated still the same error on import. This is a major problem for me.
Worked on this menu pattern for a long time and I need to be able to export it. Using it locally and synch one used on a page with the actual pattern and that works well. But I need to be able to use it elsewhere.
NB Also tried pattern with cover part turned into group https://gist.github.com/jasperf/f062895598240a4c4704e7b15057456f . But still same error
Step-by-step reproduction instructions
(In 'y.values).find ((e=>e.name===n)); 'y.values().find' is undefined
Screenshots, screen recording, code snippet
Environment info
macOS Sonoma, Safari 17.6, WordPress 6.6.2, PHP 8.2.15
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: