From 1af60fd0b364dbc7c52263472dc917a954fcdce3 Mon Sep 17 00:00:00 2001 From: hoontee Date: Sun, 13 Aug 2023 20:51:57 -0500 Subject: [PATCH] Fix sourcemap error --- Lync/sourcemap/sourcemap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lync/sourcemap/sourcemap.js b/Lync/sourcemap/sourcemap.js index 3d26031..2cfe334 100644 --- a/Lync/sourcemap/sourcemap.js +++ b/Lync/sourcemap/sourcemap.js @@ -40,7 +40,8 @@ module.exports.generateSourcemap = function(PROJECT_JSON, map, projectJson) { } } } - targetParent.children.splice(targetKey, 1) + if (targetParent) + targetParent.children.splice(targetKey, 1) continue }