diff --git a/scripts/gulp/tasks/stats.ts b/scripts/gulp/tasks/stats.ts index 3c1fba54305ac9..1354ea922ed897 100644 --- a/scripts/gulp/tasks/stats.ts +++ b/scripts/gulp/tasks/stats.ts @@ -131,7 +131,7 @@ task('stats', series(parallel('build:docs:component-info'), 'stats:build:bundle' function readSummaryPerfStats() { return _.chain(require(paths.perfDist('result.json'))) - .mapKeys((value, key) => _.camelCase(key)) // mongodb does not allow dots in keys + .mapKeys((value, key) => _.camelCase(String(key))) // mongodb does not allow dots in keys .mapValues(result => ({ actualTime: _.omit(result.actualTime, 'values'), renderComponentTime: {