Open
Description
Summary
If you have any error in your knockoutjs template you wont see the actual error given by the parser at loading the template, instead it just logs:
Failed to load the "module/components/whatever/path" template requested by "another module".
but the file can be loaded via network.
You need to intercept the Magento_Ui/js/lib/knockout/template/engine script at the point
consoleLogger.error('templateLoadingFail', {
template: templateId,
component: bindingContext.$data.name
});
and grab the first argument of the function to get the actual error.
You might still need the error in production mode, so it should be visible in the browsers console at any time.
Examples
Proposed solution
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ready for Dev