You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the Angular plugin incorrectly assumes it is attached to the window in all cases.
$scope.instance = new window.Cleave($element[0], $scope.cleave());
This causes a TypeError.
angular.js:14700 TypeError: window.Cleave is not a constructor
at Object.pre (cleave-angular.js:1138)
at angular.js:1385
Fix: The plugin should not assume that Cleave is attached to the window. Instead, it should use the same path as webpackUniversalModuleDefinition uses.
The text was updated successfully, but these errors were encountered:
If AMD is defined in the browser, the compiled code attaches Cleave to define, not to the window:
But the Angular plugin incorrectly assumes it is attached to the window in all cases.
This causes a TypeError.
Fix: The plugin should not assume that Cleave is attached to the window. Instead, it should use the same path as
webpackUniversalModuleDefinition
uses.The text was updated successfully, but these errors were encountered: