Open iandunn opened 3 years ago
No that looks good but I've not touched the project in a while and updated packages from Core can break it. So I'm not really sure what's happening here.
In general most of the issues comes from the fact that the tool itself uses @wordpress
packages and the blocks also can use these, so resolving to the right version is often very hard.
I'm trying to add some Core blocks, so that I can test a custom format I'm working on. I copied parts of the example, and it loads them. The
Card
tab has all the info, but I get an error when I click on theExample
orEditor
tabs.The only things in my
.blockbook/index.js
are:Uncaught TypeError: Object(...) is not a function
``` ParagraphBlock webpack:///./node_modules/@wordpress/block-library/build-module/paragraph/edit.js?:103 React 11 unstable_runWithPriority webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:653 React 4 unstable_runWithPriority webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:653 React 3 workLoop webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:597 flushWork webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:552 performWorkUntilDeadline webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:164 EventHandlerNonNull* webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:187Am I doing something wrong?