plugin-kit icon indicating copy to clipboard operation
plugin-kit copied to clipboard

Missing package.json

Open aidan-rypens opened this issue 3 years ago • 1 comments

[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.

aidan-rypens avatar Jan 04 '23 16:01 aidan-rypens

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.

vitorrd avatar Mar 17 '23 01:03 vitorrd