So I wrote a plugin for a custom block using create-guten-block by ahmadawais. Everything was working fine until the WP update to 5.5. Now I when I try to edit a page that has one of my custom blocks I get just a blank white screen and some console errors. (Screen shot of errors included) […]
- Tags `has-${attributes.backgroundClass}-background-color`, __("container"), __("wrap"), __("wrapper")], " " // Block content ); } }; const classes = classnames( attributes.className, " " // Block content ); } }; const classes = classnames( className, "default": {}, "default": 50, "myblock-wrapper", []) return () }, { [`align${attributes.align}`]: attributes.align && attributes.fullWidthBackground, { icon: 'welcome-widgets-menus', { title: __("Page Section"), }, } ); createElement; return ( <div cl, }; const backgrounRepeat = () => { if ( attributes.backgroundImage !== undefined && attr, }; registerBlockType("myblock/block-wrap", });, // Tag type. { className: "Wrapper-BG-img", attributes: blockAttributes, attributes.paddingBottom, attributes.paddingTop, backgroundClass: { type: "string", backgroundColor: { type: "string", backgroundImage: { type: "string", backgroundImage: attributes.backgroundImage && "url(" + attributes.backgroundImage + ")", backgroundImageSize: { type: "string", backgroundImageX: { type: "number", backgroundImageY: { type: "number", backgroundOpacity: { type: "number", backgroundSize: 'cover', category: 'common', className } = props; const wrapperStyle = { backgroundImage: attributes.backgroundImage && "url(" + attri, className: { type: 'string', contentWidth: { type: "string", createElement } = wp.element; const { registerBlockType } = wp.blocks; const { InnerBlocks } = wp.blockEditor; const blockAttributes = {, default: 'full' }, default: "#ffffff", default: "cover", default: "Inner-width--default", default: "white", default: "Wrapper-padding-bottom--default", default: "Wrapper-padding-top--default", default: 100, default: true }, edit: (props) => { const { attributes, fullWidthBackground: { type: "bool", getEditWrapperProps() { return { "data-align": "full" }; }, keywords: [__("page section"), only Wordpress itself. I'll be happy provide more info as needed. I just don't want to overload the post with what could be un-needed info., paddingBottom: { type: "string", paddingTop: { type: "string", save: (props) => { const { attributes } = props; const wrapperStyle = { backgroundColor: attributes.backgroundCol, So I wrote a plugin for a custom block using create-guten-block by ahmadawais. Everything was working fine until the WP update to 5.5. Now I, style: wrapperStyle