diff --git a/packages/string-templates/src/index.ts b/packages/string-templates/src/index.ts index aceea1da7e..8fd2e7bfc4 100644 --- a/packages/string-templates/src/index.ts +++ b/packages/string-templates/src/index.ts @@ -230,7 +230,7 @@ export function processStringSync( } else { return process(string) } - } catch (err) { + } catch (err: any) { if (err.code === "USER_SCRIPT_ERROR") { throw err }