-
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
[ERROR] Failed to load the "Magento_Checkout/js/view/form/element/email" component #38274
Comments
Hi @maile-it-solutions. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the attached video, Steps to reproduce
Screencast.from.13-12-23.11.54.37.AM.IST.webmKindly recheck the behaviour on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible and check any third party modules causing the issue. Thanks. |
Kindly provide latest update on this comment #38274 (comment) still you are working on this issue if you are able to reproduce the issue please elaborate the steps to reproduce.Please let us know still if you are facing any issue. Thanks. |
We have noticed that this issue has not been updated since long time. Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this. Thanks. |
@maile-it-solutions did you find any solution for this? Seeing the same with no stack trace or debugging information beyond the single line from the issue title. We were able to replicate by doing the following:
Result: No email field is present and the first checkout step cannot be completed. Instead of step 3 going to the cart page first and then on to the checkout does not produce the error. It appears that the quote is not fully created or available unless the user has interacted with the basket, but the root cause is still not evident. Edit to say we're seeing it on 2.4.4 and 2.4.5 |
@maile-it-solutions can you re-open this issue? We're experiencing the same problem |
@PeteBED @mjvermeltfoort So, at the moment, I do not know why the UI component for the e-mail sometimes fails to load. |
@maile-it-solutions are you able to reopen the issue? |
Hello @maile-it-solutions |
+1 on this issue, bit more information on reliably reproducing the issue in our environments at least. Its vital there is no left over data from previous site visits.
As for the field not loading, debugging the generic requirejs component failed to load error. It appears to be masking the following error & stack trace.
Interesting Methods along with their source code
Its looking to be potentially a race condition where the email field is trying to save data into the local storage cache before its been initialised properly. |
A bit more digging reveals this bug was first noticed in 2020 in a commit against the following commit 5983e17 With the following issue being created for it #31920 Anyway looks to be a potential patch for it in the above linked issue #31920 (comment) |
@SamJUK, thanks a lot! That made my day. @andrewbess @engcom-Bravo
and after applying the patch https://github.com/magento/magento2/commit/847c7997143d3c90b26f94480a9fe202f499faf7.diff it is gone |
Thanks for your update. Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the attached video. Steps to reproduce :
Screencast.from.29-01-24.12.40.27.PM.IST.webmWe are able to see the email field in checout. Kindly recheck the issue in Magento 2.4-develop instance and please let us know if we are missing anything. Thanks. |
Hi @engcom-Bravo, |
@magento give me 2.4-develop instance |
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Bravo, here is your Magento Instance: https://8630b86106fc53ae693272e727b6ac29.instances-prod.magento-community.engineering |
Thanks for your update. We have Cleared all website data before refreshing the page and the issue is still not reproducible. Email field is still visible. Could you please check the issue in Latest Magento 2.4 -develop instance and elaborate the steps if the issue is still reproducible. Thanks. |
Fine for me the code from @SamJUK solved my issue @mjvermeltfoort @PeteBED feel free to respond here, otherwise I will close the issue |
Patch worked here too |
+1 to this issue. Patch looks to have resolved the issue. |
We've noticed that on 2.4.6 and 2.4.7 latest patches this is still an issue. We've tried: #33593 - still in testing Does anyone have a confirmed way to replicate the email not showing up, as it is so sporadic. |
33593 should address the mixin and allow customerData mixin to properly apply before rest js runs. I believe the suggested fixes here needs to be reverted, apply 33593 patches(from the actual patch, 4 files). This should then: resolve mixins properly apply(33593)->applies customerData mixin and instantiate storage->read datamageinit customerData config options outout-> scripts requiring customerData should now have options configured, storage prop available, and proper function getExpiredSectionNames method. |
@andy-aware I am not sure if the emoji response indicates that you tested and confirmed my fix above. |
@AndresInSpace Looks as though the Patch did not resolve the issue. The email form on checkout still either loads or sporadically doesn't, and we have only been able to catch it with full-story - unable to replicate fully yet. |
I can't reproduce this on a vanilla instance even. I followed the trace and came to same conclusion as #38274 (comment) |
Preconditions and environment
Sometimes when you go to /checkout the E-Mail does not load
Steps to reproduce
2 Go to /checkout
-> Sometimes the E-Mail field is not loading and no checkout is possible.
Expected result
E-Mail field is visible
Actual result
Sometimes Error from title is thrown and E-Mail field is not visible
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: