Conflict between my blocks plugin and jetpack
-
Hi there,
I seem to have a conflict with jetpack but I have no idea how to debug this.
Whenever both my plugin and jetpack are enabled, I get errors on default wordpress blocks like images and also some jetpacks blocks disappear, the edit saying that my website has no support for them (ex: jetpack/contact-form).
The 2 JS errors in editor are:
Uncaught TypeError: Object(…) is not a function
at Module.<anonymous> (editor.js?ver=8.9:formatted:21965)
at o (editor.js?ver=8.9:formatted:30)
at Object.<anonymous> (editor.js?ver=8.9:formatted:34263)
at o (editor.js?ver=8.9:formatted:30)
at editor.js?ver=8.9:formatted:208
at editor.js?ver=8.9:formatted:209
(anonymous) @ editor.js?ver=8.9:formatted:21965
o @ editor.js?ver=8.9:formatted:30
(anonymous) @ editor.js?ver=8.9:formatted:34263
o @ editor.js?ver=8.9:formatted:30
(anonymous) @ editor.js?ver=8.9:formatted:208
(anonymous) @ editor.js?ver=8.9:formatted:209
react-dom.min.js?ver=16.9.0:103 TypeError: Object(…) is not a function
at WithMediaPlaceholderUpgradable(r) (editor.js?ver=8.9:formatted:18155)
at je (react-dom.min.js?ver=16.9.0:78)
at ph (react-dom.min.js?ver=16.9.0:215)
at lh (react-dom.min.js?ver=16.9.0:126)
at O (react-dom.min.js?ver=16.9.0:121)
at ze (react-dom.min.js?ver=16.9.0:118)
at react-dom.min.js?ver=16.9.0:53
at unstable_runWithPriority (react.min.js?ver=16.9.0:26)
at Ma (react-dom.min.js?ver=16.9.0:52)
at mg (react-dom.min.js?ver=16.9.0:52)1st one bringing me to :
var O = Object(b.compose)(Object(h.withColors)({
backgroundColor: “background-color”
}, {
textColor: “color”
}), j)((function(e) {The other one to :
var et = Object(G.createHigherOrderComponent)((function(e) {
return function(t) {
var n = Object(w.useBlockEditContext)().name
, r = Object(qe.c)(n);
if (!(null == r ? void 0 : r.mediaPlaceholder) || !Object(qe.e)(n))
return Object(o.createElement)(e, t);
var a = r.fileType
, c = t.onError
, i = Object(o.useContext)(Ge)
, l = Object(o.useCallback)((function(e) {(if it can help)
How can I make my blocks not conflict with jetpack ?
Thanks a lot !
- The topic ‘Conflict between my blocks plugin and jetpack’ is closed to new replies.