From b46ca34d840b24c1c95d940f9fc029a6d01f3040 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 18 Aug 2023 14:23:29 +0300 Subject: [PATCH] TypeError: Result of expression 'includePaths[i].includes' [undefined] is not a function. --- qbs/modules/buildconfig/buildconfig.qbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbs/modules/buildconfig/buildconfig.qbs b/qbs/modules/buildconfig/buildconfig.qbs index adddfbf43..9be8af622 100644 --- a/qbs/modules/buildconfig/buildconfig.qbs +++ b/qbs/modules/buildconfig/buildconfig.qbs @@ -823,7 +823,7 @@ Module { for(var i = 0; i < includePaths.length; i++) { - if (includePaths[i].includes("xerces-c")) + if (typeof includePaths[i] === 'string' && includePaths[i].includes("xerces-c")) { paths.push(includePaths[i]); }