-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
JS error in the customer data #31920
JS error in the customer data #31920
Comments
Hi @ihor-sviziev. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hello @ihor-sviziev Thank you for your report. We Confirm that the issue is reproducible on the latest 2.4-develop. Additional info is added to the description. |
✅ Confirmed by @engcom-Bravo Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Re-opened since it was reverted. #31920 (comment) |
Hi @ihor-sviziev, Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshost. Steps to reproduce 1.Add the following code to the page on frontend:
2.Go to the frontend, see the console In Console we are getting Error. Hence confirming this issue. Thanks. |
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Once all required labels are present, please add |
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Once all required labels are present, please add |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-7501 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
up, 2.4.x-develop seems to still produce the error (tested with firefox). |
It appears this has not been fully addressed. Needs same check at https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Customer/view/frontend/web/js/customer-data.js#L263 Additionally customer-data has a race condition with its mixin and the events (eg AjaxComplete event) Since the mixin is what initializes the storage property, when the ajaxcomplete happens before the mixin is loaded it calls invalidate method which calls-> buffer.remove-> for each section calls-> storage.remove and errors out (storage undefined). This is mainly happening when third-party scripts are making ajax calls due to them not using require call because they are not dependent on magento scripts, or if it is magento dependent then customer-data is not included in dep array in require call or the ajax event does not have global set to false.. Setting global false on ajax request is not a proper fix if they do want it to be intercepted, just not by customer-data.. Edit: |
Originally this issue was reported in 5983e17#commitcomment-44080850 by @HenKun.
The following commit 5983e17 leads to similar issues described in #24847.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Additional info from Engcom
Add the script to, for example, /app/code/Magento/Customer/view/frontend/templates/form/edit.phtml
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: