TagsBundle icon indicating copy to clipboard operation
TagsBundle copied to clipboard

jQuery error after ibexa experience and netgen tagsbundle upgrade

Open paulKopf opened this issue 1 year ago • 0 comments

Versions: ibexa/experience: 4.5.0, netgen/tagsbundle: 5.0.5

After upgrading our Project to ibexa experience 4.x and netgen tagsbundle we get the following jQuery error when we edit an article:

caught ReferenceError: jQuery is not defined
    at ibexa-admin-ui-content-edit-parts-js.js:10217:3
    at ./vendor/netgen/tagsbundle/bundle/Resources/public/admin/js/fieldType/eztags.js (ibexa-admin-ui-content-edit-parts-js.js:10221:3)
    at __webpack_require__ (runtime.js:23:42)
    at __webpack_exec__ (ibexa-admin-ui-content-edit-parts-js.js:10227:48)
    at ibexa-admin-ui-content-edit-parts-js.js:10228:3800
    at webpackJsonpCallback (runtime.js:152:39)
    at ibexa-admin-ui-content-edit-parts-js.js:1:53
(anonymous) @ ibexa-admin-ui-content-edit-parts-js.js:10217
./vendor/netgen/tagsbundle/bundle/Resources/public/admin/js/fieldType/eztags.js @ ibexa-admin-ui-content-edit-parts-js.js:10221
__webpack_require__ @ runtime.js:23
__webpack_exec__ @ ibexa-admin-ui-content-edit-parts-js.js:10227
(anonymous) @ ibexa-admin-ui-content-edit-parts-js.js:10228
webpackJsonpCallback @ runtime.js:152
(anonymous) @ ibexa-admin-ui-content-edit-parts-js.js:1

In webpack.config.js we used Encore.autoProvidejQuery(). As far as I understand, this should actually prevent this kind of errors.

Actually this seems not to break any functionallity of articles. But, we have no preview in page builder. I am not sure if it is caused by this error.

According to the Ibexa slack we are not alone with this issue (https://ezcommunity.slack.com/archives/C032PD5N9UY/p1683020263526259?thread_ts=1681827394.595569&cid=C032PD5N9UY).

Thanks for your help.

paulKopf avatar Jul 26 '23 14:07 paulKopf