I packaged up my 3 new plugins sb-children-block, sb-parent-block and sb-breadcumbs-block with each of them having been built with npm run build and loaded them to oik-plugins.
The trouble is, that the sb/children-block ( which was the first block I built ) does not work in the editor.
It produces
This block has encountered an error and cannot be previewed.
There's a message in the console
react.js?ver=16.9.0:260 Warning: React.createElement: type is invalid --
expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
You likely forgot to export your component from the file it's defined in,
or you might have mixed up default and named imports.
Check the render method of `edit`.
then a massive stack starting
in edit
in Unknown (created by WithToolbarControls(Component))
in WithToolbarControls(Component) (created by WithInspectorControl(WithToolbarControls(Component)))
Additionally, the sb/parent-block stops working. I get
Your site doesn't include support for the "sb/parent-block" block.
You can leave this block intact or remove it entirely.
I packaged up my 3 new plugins sb-children-block, sb-parent-block and sb-breadcumbs-block with each of them having been built with
npm run buildand loaded them to oik-plugins.The trouble is, that the
sb/children-block( which was the first block I built ) does not work in the editor.It produces
There's a message in the console
then a massive stack starting
Additionally, the
sb/parent-blockstops working. I get