Open aidan-rypens opened 1 year ago
FYI to whoever runs into this problem. This stems from the fact package globby (for file globs), which pkg-utils uses (and plugin-kit depends on), doesn't support backward slashes in its patterns, therefore matching files on Windows will always fail.
I can't currently work on this but will submit a PR as time permits to essentially .split(path.sep).join(path.posix.sep)
all paths before handing them onto globby.
[0] Error: missing package.json [0] at D:\repos\sanity-smartling\sanity-plugin-smartling\node_modules\@sanity\pkg-utils\dist_chunks\watch-86ed07a5.cjs:186:13
[0] [0] D:\repos\sanity-plugin\sanity-plugin-smartling\node_modules\rxjs\dist\cjs\internal\util\reportUnhandledError.js:13 [0] throw err; [0] ^ [0] [0] Error: missing package.json [0] at D:\repos\sanity-plugin\sanity-plugin-smartling\node_modules\@sanity\pkg-utils\dist_chunks\watch-86ed07a5.cjs:186:13 [0] at D:\repos\net-sanity-plugin\sanity-plugin-smartling\node_modules\rxjs\dist\cjs\internal\operators\switchMap.js:17:35
Following the exact steps in the
readme
end up in error.