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

Issue Creating Test Application on MacOS cli #1

Open
doola-x opened this issue May 15, 2024 · 2 comments
Open

Issue Creating Test Application on MacOS cli #1

doola-x opened this issue May 15, 2024 · 2 comments

Comments

@doola-x
Copy link

doola-x commented May 15, 2024

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": [email protected] 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:

  • xcodegen
  • pnpm
  • bun

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

@doola-x doola-x changed the title Issue Creating Test Application on MacOS Issue Creating Test Application on MacOS cli May 15, 2024
@kennethnym
Copy link
Contributor

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
Copy link
Contributor

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

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

No branches or pull requests

2 participants