-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Improved error message when requirejs fails to load a component. #38971
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
Improved error message when requirejs fails to load a component. #38971
Conversation
|
Hi @hostep. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
Hello @hostep, Thank you for the collaboration and contribution! ✔️ QA PassedSteps to reproduce:
Before: ✖️Log was not pointing to exact problem. After: ✔️Getting clear log of where the problem lies. Since the issue linked to pr is marked as feature request moving this to on hold till we get PO confirmation on the same. Thank you. |
|
As we got the confirmation from Product Owner on this PR to proceed further, removing it from On hold. Moving it to Extended Testing as the build is failing. Thank you! |
|
@magento run all tests |
|
@magento run Functional Tests B2B, Functional Tests CE, Unit Tests |
|
@magento run Functional Tests B2B |
|
@magento run all tests |
|
@magento run Functional Tests B2B, Functional Tests EE, Unit Tests |
|
@magento run Functional Tests B2B |
|
The Functional B2B failures are not consistent in recent 2 builds on same code. They are not part of PR or not failing because of PR changes. The tests failures seems to be flaky hence moving this PR to Merge in Progress. Run 1:
|
f6924b4
into
magento:2.4-develop






Description (*)
When something goes wrong when trying to load a dependency through requirejs, the error message is not very clear and it's hard to find the real problem based on the error message.
Here we improve the error message and output more detailed information about the problem, which should help frontend developers in figuring out bugs in their code.
Related Pull Requests
N/A
Fixed Issues (if relevant)
Manual testing scenarios (*)
app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.jsand add this problematic line:Before the changes, not clear what the problem is:

After the changes: a lot more clearer what the problem is:

Questions or comments
There are almost no automated tests around this functionality, so I'm not bothering adding a test, because I don't know how I should do this.
Contribution checklist (*)