Closed summer-2014 closed 3 months ago
On Windows, the path of the operation is invalid.
Perhaps it can be solved like this:
function getRoutePathName(filePath: string, rootPath: string) { return filePath .replace(rootPath, "") .replace("[", "{") .replace("]", "}") .replaceAll("\\", "/") // add this line .replace("/route.ts", ""); }
Good catch. Why don't you make a pr and join as a contributor? 😉 I'll merge and release a quick patch for that.
On Windows, the path of the operation is invalid.
Perhaps it can be solved like this: