netgen / TagsBundle

Netgen Tags Bundle is an eZ Platform bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ezkeyword field type included in eZ Platform kernel.
https://netgen.io
GNU General Public License v2.0
48 stars 44 forks source link

jQuery error after ibexa experience and netgen tagsbundle upgrade #158

Open paulKopf opened 1 year ago

paulKopf commented 1 year ago

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.