diff --git a/lib/util/convert-path-to-posix.ts b/lib/util/convert-path-to-posix.ts index 5bc6d5f9..4e12d149 100644 --- a/lib/util/convert-path-to-posix.ts +++ b/lib/util/convert-path-to-posix.ts @@ -7,5 +7,5 @@ export default function convertPathToPosix(filePath: string) { return filePath; } - return filePath.split(path.win32.sep).join(path.posix.sep); + return filePath.split(path?.win32?.sep).join(path.posix.sep); }