Custom Gutenberg Blocks + Jetpack Blocks Javascript Error
-
I’m having an issue with custom blocks and jetpack – when Jetpack is inactive, everything works fine – but once Jetpack is enabled I get a javascript error
TypeError: L(...) is not a function at new t (editor.js:18) at Yg (react-dom.min.js:68) at rh (react-dom.min.js:98) at zj (react-dom.min.js:228) at Th (react-dom.min.js:152) at tj (react-dom.min.js:152) at Te (react-dom.min.js:146) at react-dom.min.js:61 at unstable_runWithPriority (react.min.js:25) at Da (react-dom.min.js:60)
If I add
add_filter( 'jetpack_gutenberg', '__return_false' );
to my plugin, it fixes the issue but also removes all of the jetpack blocks which could potentially break some client sites depending on if they are using jetpack blocks or not.
This is the code to initiate my custom blocks in php https://github.com/showpass/showpass-wordpress-plugin/blob/master/plugin/showpass-wordpress-plugin-blocks.php
And the javascript https://github.com/showpass/showpass-wordpress-plugin/blob/master/showpass-block-src/index.js
- The topic ‘Custom Gutenberg Blocks + Jetpack Blocks Javascript Error’ is closed to new replies.