An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
fix: Ensure projectRoot is a string (potential WSL fix) (#892)
Joe Danziger56a415ef795c
diff --git a/.changeset/bright-monkeys-act.md b/.changeset/bright-monkeys-act.mdnew file mode 100644index 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.jsindex 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 segmentsconst segments = projectRoot.split(path.sep);