Skip to content

sb-children-block built with npm run build doesn't work #6

@bobbingwide

Description

@bobbingwide

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions