This was caused by a different issue for me. I was getting this error when trying to create a new cart price rule.
There was a patch that hadn't been run in the composer.json and a re-deploy resolved it :
"extra": {
"magento-force": "override",
"patches": {
"magento/module-ui": {
"some.data is not a function": "patches/module-ui-patch-1.diff"
}
}
}
Here is the diff of this patch :
diff --git a/view/base/web/js/form/element/select.js b/view/base/web/js/form/element/select.js
index 0c266b9..22fe498 100644
--- a/view/base/web/js/form/element/select.js
+++ b/view/base/web/js/form/element/select.js
@@ -64,16 +64,17 @@ define([
function findFirst(data) {
var value;
- data.some(function (node) {
- value = node.value;
-
- if (Array.isArray(value)) {
- value = findFirst(value);
- }
+ if (data instanceof Array) {
+ data.some(function (node) {
+ value = node.value;
- return !_.isUndefined(value);
- });
+ if (Array.isArray(value)) {
+ value = findFirst(value);
+ }
+ return !_.isUndefined(value);
+ });
+ }
return value;
}