Hi,
I’ve just found the source of the problem. So if you encounter the same one (and if a WP core dev comes by to pick up the complaint), here’s what’s happening for me. The export actually works, but it takes an extremely long time. As there’s no message to indicate that it’s in progress, I left the page before it was finished. It’s extremely long because I have a a heavy node_modules folder from nodeJS in my theme development. Because I’ve developed custom Gutemberg blocks within my theme, using the official create-block library, which requires NodeJS.
But even if I wait long enough for the export to finish, the resulting zipped folder is not unzippable. I get the following message: “Impossible to unzip ‘nom-du-theme’. The format is not supported”. So I’m going to delete this node_modules folder as soon as I need to export my theme and I’ll regenerate it right afterwards.
WP core developers, it would be nice to add a hook or filter to be able to exclude files or folders from the export, like a gitignore. And for developers who also want to create an FSE theme with custom Gutemberg blocks, I can advise you to pass the blocks to a plugin. This will separate the theme from the blocks and the export should work.
Have a nice day,
ostaladafab