Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing package.json #61

Open
aidan-rypens opened this issue Jan 4, 2023 · 1 comment
Open

Missing package.json #61

aidan-rypens opened this issue Jan 4, 2023 · 1 comment
Labels

Comments

@aidan-rypens
Copy link

aidan-rypens commented Jan 4, 2023

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

@vitorrd
Copy link

vitorrd commented Mar 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants