Widget JavaScript Error When Attempting To Add A New Observable Property Resulting In Uncaught TypeError: Unable to process binding "if: function(){return $data.templateSrc }"
(Doc ID 2562224.1)
Last updated on JUNE 15, 2022
Applies to:
Oracle Commerce Cloud Service - Version N/A and laterInformation in this document applies to any platform.
Symptoms
On : NA version, Storefront
When attempting to add a new observable property to a widget, and reference it from the widget's template, intermittently the widget gets broken at page load time because the reference to that observable cannot be found
and the following error occurs:
knockout-3.4.0.js:72
Uncaught TypeError: Unable to process binding "if: function(){return $data.templateSrc }"
Message: Unable to process binding "template: function(){return {name:templateUrl(),templateSrc:templateSrc()} }"
Message: Unable to process binding "with: function(){return orderDetails }"
Message: Unable to process binding "with" function(){return order }"
Message: Unable to process binding "foreach: function(){return items }"
Message: Unable to process binding "if: function(){return $parents[1].state ==='SUBMITTED'&& !$parents[2].isLoadingReviews() }"
Message: $parents[2].isLoadingReviews is not a function
at if (eval at parseBindingsString (knockout-3.4.0.js:68), :3:110)
at f.m.i (knockout-3.4.0.js:8)
at Function.Pc (knockout-3.4.0.js:51)
at Function.Qc (knockout-3.4.0.js:51)
at Function.aa (knockout-3.4.0.js:50)
at Object.f.m.f.B (knockout-3.4.0.js:49)
at init (knockout-3.4.0.js:8)
at knockout-3.4.0.js:72
at Object.w (knockout-3.4.0.js:39)
at knockout-3.4.0.js:71
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |