Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

The plugin doesn't work at all, missing binaries. #327

Open
scerelli opened this issue Nov 3, 2023 · 0 comments
Open

The plugin doesn't work at all, missing binaries. #327

scerelli opened this issue Nov 3, 2023 · 0 comments

Comments

@scerelli
Copy link

scerelli commented Nov 3, 2023

I have a mono repo based on turborepo and pnpm workspaces. I tried to follow the instruction how you specified.

pnpm add sanity-codegen@alpha --filter="my-workspace"
then cd into my sanity workspace and run:
npx sanity-codegen codegen i also tried pnpm dlx sanity-codegen@alpha codegen or pnpm sanity-codegen codegen.

No luck, pnpm throws this error:

 ERR_PNPM_DLX_NO_BIN  No binaries found in sanity-codegen

npx instead:

npx sanity-codegen codegen

 ›   Error: command codegen not found

I guess there is something wrong in the docs.

I saw in node_modules folder that sanity-codegen doesn't contain much, just a package json with a bunch of sanity-codegen packages. To make it work i think you should export at least some commands that can be run from the outside.

@scerelli scerelli changed the title The plugin doesn't work at all or something is missing in the docs. The plugin doesn't work at all, missing binaries. Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant