Better error message for knockoutjs parser / evaluation error #39257
Labels
feature request
Progress: dev in progress
Progress: ready for grooming
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
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
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
The text was updated successfully, but these errors were encountered: