Title: Custom Gutenberg Blocks + Jetpack Blocks Javascript Error
Last modified: January 14, 2021

---

# Custom Gutenberg Blocks + Jetpack Blocks Javascript Error

 *  Resolved [marcshowpass](https://wordpress.org/support/users/marcshowpass/)
 * (@marcshowpass)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/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](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](https://github.com/showpass/showpass-wordpress-plugin/blob/master/showpass-block-src/index.js)
    -  This topic was modified 5 years, 2 months ago by [marcshowpass](https://wordpress.org/support/users/marcshowpass/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [5 years, 2 months ago](https://wordpress.org/support/topic/custom-gutenberg-blocks-jetpack-blocks-javascript-error/#post-13908636)
 * I believe you may be running into the issue outlined here:
    [https://github.com/WordPress/gutenberg/issues/23607](https://github.com/WordPress/gutenberg/issues/23607)
 * As you can see, the issue has already been fixed in the development version of
   the Gutenberg plugin, and the fix will be available in the next version of WordPress.
 * We’re working on tackling this issue in Jetpack as well, in [this PR](https://github.com/Automattic/jetpack/pull/17312).
 * Until all of those fixes become available everywhere, I would recommend that 
   you try this solution in your plugin:
    [https://github.com/WordPress/gutenberg/issues/23607#issuecomment-692374275](https://github.com/WordPress/gutenberg/issues/23607#issuecomment-692374275)
 * I hope this helps.
 *  Thread Starter [marcshowpass](https://wordpress.org/support/users/marcshowpass/)
 * (@marcshowpass)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/custom-gutenberg-blocks-jetpack-blocks-javascript-error/#post-13914594)
 * Awesome, that solved the issue.
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Gutenberg Blocks + Jetpack Blocks Javascript Error’ is closed 
to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [marcshowpass](https://wordpress.org/support/users/marcshowpass/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/custom-gutenberg-blocks-jetpack-blocks-javascript-error/#post-13914594)
 * Status: resolved