You can’t properly import modules, when creating custom Gutenberg blocks with Sage10.
We have developed multiple custom Gutenberg blocks using Sage10 without problems. However, when creating a faq wrapper block, that uses the react-structured-data package, all of the custom blocks disappear from the Gutenberg context menu when adding new blocks. There is no error message whatsoever. The same block worked in Sage9 without problems.
Sample:
Just adding the import of the module leads to the disappearing of the custom blocks in gutenberg.
I’m working with @swanifrej on this project, if you need any more info to reproduce, let us know. From what I can tell, importing any external library makes the editor.js silently fail.
I suppose it is from extracting the vendors but due to there being no Logs at all, currently have no clue how to debug this.