-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: this._each is not a function #39247
Comments
Hi @pjw345. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Same error on Magento 2.4.6-p6 |
Same error on Magento 2.4.5-p10 |
reproduced for me on 2.4.7-p3. It is only reproduced with New Relic installed. |
Same issue on Magento 2.4.5-p2. |
I saw this error after updating projects to the bulletin APSB24-61 on projects with New Relic configured. If you guys check the release notes there was a fix on prototype js scripts (I don't know if could be related to this). There are 3 types of New Relic accounts and the script will be injected according to your account: Lite - https://js-agent.newrelic.com/nr-rum-1.267.0.min.js I saw this error only happens on projects that have SPA accounts, perhaps it could be an incompatibility with this SPA script. |
I've checked the bulletin and have not seen anything regarding legacy-build.min.js. https://helpx.adobe.com/security/products/magento/apsb24-61.html @bbrigagao can you remember where you read that or did I miss it? |
Again, same error on Magento 2.4.6-p7 (last week upgraded from 2.4.6-p6). |
Hi Adobe Commerce Support, same problem with Magento (2.4.7-p3) and not have problem with preview (2.4.7-p2) hosted in Magento Cloud. Where i have this problem in Admin Panel :
File from vendor lib (legacy-build.min.js) = Cordialement, |
I believe the issue can be resolved by fixing the Please let us know if the Magento team or any of you have identified a permanent fix. |
Same error on 2.4.4-p11, was not on 2.4.4-p4. |
Confirmed on 2.4.7-p2 |
Changed legacy-build.min.js with the version from 2.4.6-p5 but with no effect; the problem isn't from legacy-build.min.js |
We are running 2.4.7-p2 and replaced the legacy-build.min.js with the version of 2.4.7-p1 |
Hi @engcom-Delta. Thank you for working on this issue.
|
ACP2E-3375: [CLOUD] In admin there are many javascript error in console probably fixes this problem. |
adobe has an official patch for this issue, please raise a support ticket. |
None of last two patches fix this. |
@stefancic the patch provided by @hostep and @jonaschen623 it's working. You need to apply this change to n(Object, {
extend: n,
inspect: r,
toJSON: g ? Q : H,
toQueryString: J,
toHTML: v,
keys: Object.keys || E,
- values: N,
+ values: Object.values || N,
clone: z,
isElement: L,
isArray: B,
isHash: y,
isFunction: t,
isString: l,
isNumber: M,
isDate: A,
isUndefined: u
}); You can apply the following patch with Quality Patches Tool. It is tested on Adobe Commerce Cloud 2.4.6-p7. |
Hi @pjw345 , Thanks for your reporting and collaboration. Steps to reproduce
Can you please re-verify and confirm if you are still facing the issue. |
Hi @pjw345 , |
Hi @pjw345 @bohdanbatsenko , Thanks for your reporting and collaboration. Steps to reproduce
Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13343 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
❌ You don't have permission to export this issue. |
Hi @pjw345 |
@bohdanbatsenko as previously stated, replacing the legacy-build.min.js with the version of 2.4.7-p1 appeared to resolve the issue |
Replacing legacy-build.min.js with the version found in 2.4.7-p1 resolved the error for me. Waiting on an official fix. |
Another extra change made it in the codebase today: ACP2E-3459: Request for additional changes to fully complete the ACP2E-3375 fix No idea if this will do anything in scope of this ticket... |
The given patches from @hostep and @lamasfoker does not apply in 2.4.7-p3 version (cloud) , i have used the ece-tools to apply patches and did not work. |
@BharathKumarZiffity if the patch that I provided it does not apply on 2.4.7-p3 version (cloud) then you can generate a new one for your version. I stated the diff in my previous message, in that way you can generate a patch on your own. |
Apply the patch ACSD-63244 for Adobe commerce cloud environment. Worked for me. |
Preconditions and environment
Steps to reproduce
Expected result
Expect no console errors logged
Actual result
Lots of errors logged repeatedly:
legacy-build.min.js:1 Uncaught TypeError: this._each is not a function
at e (legacy-build.min.js:1:14513)
at nr-spa-1.267.0.min.js:2:81604
at Array.forEach ()
at y.ce [as onFinished] (nr-spa-1.267.0.min.js:2:81583)
at y.finish (nr-spa-1.267.0.min.js:2:76545)
at nr-spa-1.267.0.min.js:2:76118
Additional information
This is related to legacy-build.min.js which is released with Magento 2.4.7-p2. If the file is replaced by the version released by Magento 2.4.7-p1 the error goes away.
See also issue logged on New Relic github:
newrelic/newrelic-browser-agent#1201
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: