Closed roszpapad closed 5 months ago
FYI The same issue was fixed in https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2821 by introducing lodash.underscore. But this category is not working anymore.
I am closing this issue because in the end, it seems that some of our customizations broke this functionality. I will reopen this if it is not the case.
I am reopening the issue. I double-checked it and the issue is with the dependency of composite-multifield. On my local environment, I changed it manually to acs-commons.lodash
and the issue was gone. Can you please double-check it on your side as well?
FTR: According to https://experienceleague.adobe.com/en/docs/experience-manager-65/content/release-notes/deprecated-removed-features
Deprecated Feature: Lodash/underscore client library. Adobe does not plan to further maintain and update the Lodash/underscore client library that is shipped as part of the distribution (Quickstart).
Replacement: Adobe recommends customers that still require Lodash/underscore for their code to add it into their project code base.
AEM version: 6.5.20 ACS AEM Commons Version: 6.3.2 Reproducible on Latest? yes
Expected Behavior
There is no JS error in the console.
Actual Behavior
Current error in the console:
The issue is caused by
window._
is undefined. /apps/acs-commons/touchui-widgets/composite-multifield and more touch-ui widgets depend on lodash.underscore which is not found in AEM 6.5.20. Therefore, we always get this issue. A potential fix would be to depend on acs-commons.lodash instead (/apps/acs-commons/clientlibs/vendor/lodash) or depend on cq.integ.underscore (/libs/cq/personalization/clientlib/underscore)Steps to Reproduce
Embed acs-commons.authoring.composite-multifield clientlib. If you open a dialog, the JS issue will appear.
Note: /apps/acs-commons/touchui-widgets/search-based-path-browser also depends on lodash.underscore.