diff --git a/.changeset/bright-monkeys-act.md b/.changeset/bright-monkeys-act.md new file mode 100644 index 00000000..8536974c --- /dev/null +++ b/.changeset/bright-monkeys-act.md @@ -0,0 +1,5 @@ +--- +"task-master-ai": patch +--- + +Ensure projectRoot is a string (potential WSL fix) diff --git a/src/utils/path-utils.js b/src/utils/path-utils.js index 57853334..d764a235 100644 --- a/src/utils/path-utils.js +++ b/src/utils/path-utils.js @@ -25,6 +25,9 @@ import { getLoggerOrDefault } from './logger-utils.js'; export function normalizeProjectRoot(projectRoot) { if (!projectRoot) return projectRoot; + // Ensure it's a string + projectRoot = String(projectRoot); + // Split the path into segments const segments = projectRoot.split(path.sep);