poly-gui / cli

CLI for creating and managing Poly projects
MIT License
3 stars 0 forks source link

Issue Creating Test Application on MacOS cli #1

Open doola-x opened 1 month ago

doola-x commented 1 month ago

Hello Kenneth :)

i am having some trouble getting past the generate command when setting up my test application. when the generate.go command reaches the pnpm install command i get the following error:

│ > tsc -p tsconfig.build.json
│ src/button/button.ts(1,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/center/center.ts(2,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/column/column.ts(4,36): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/create-widget.ts(2,36): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/list-view/list-view.ts(1,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/row/row.ts(6,36): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/text-field/text-field.ts(1,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/text/text.ts(1,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/update-widget.ts(1,36): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│ src/widget/widget.ts(1,41): error TS2307: Cannot find module 'poly/application' or its corresponding type declarations.
│  ELIFECYCLE  Command failed with exit code 2.
└─ Failed in 1.9s at /Users/{me}/Library/pnpm/store/v3/tmp/_tmp_72830_331db1ef982fa1eab7ce712bd1572d15
 ERR_PNPM_PREPARE_PACKAGE  Failed to prepare git-hosted package fetched from "https://codeload.github.com/poly-gui/ts-poly-widgets/tar.gz/2c930b7f6267760429d952379eab8d28fe78db2a": poly-widgets@1.0.0 pnpm-install: `pnpm install`
Exit status 2

i am unsure if this is an issue with the tsconfig.build.json file or something else -- sort of unrelated but I also had to install a few things that were not in the docs to get to this stage including:

could probably extend the generate file to search for another package manager besides pnpm and if none are available throw some sort of err. the errors were easy enough to follow up till this point but now i feel like i am missing something from the ts-poly-widgets repo or similar. let me know if i can provide any more info!

- doola

kennethnym commented 1 month ago

yeah, sorry about the lack of docs for project generation, but generating project seems to work fine for me:

Screenshot 2024-05-15 at 18 08 47

do u have a minimal repo of the issue so i can give it a look?

kennethnym commented 1 month ago

@doola-x i have also updated the docs with pre-requisites for the cli