Open fortion71 opened 1 month ago
As a workaround, I tried:
npx gluestack-ui init
(which succeeded)Unfortunately running yarn
to install dependencies fails with:
➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 630ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 977ms
➤ YN0000: ┌ Link step
➤ YN0007: │ frontend@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ frontend@workspace:. couldn't be built successfully (exit code 127, logs can be found here: /private/var/folders/fc/jbw4cx0d65ng6h7p3y3668m80000gn/T/xfs-67243fea/build.log)
➤ YN0000: └ Completed in 1s 352ms
➤ YN0000: · Failed with errors in 4s 148ms
The log file showed:
# This file contains the result of Yarn building a package (frontend@workspace:.)
# Script name: postinstall
command not found: patch-package
I can get the error to go away by adding "patch-package": "8.0.0"
to devDependencies
in my package.json
, but that's a bit too janky for my taste. (Note: Got the patch-package version from here, which is referenced here)
Hopefully, the gluestack-ui init
script can be updated to support Yarn modern (or someone comes up with a more robust workaround than I did)
Hey @fortion71 thank you for reporting the issue, we are looking into it.
ooh yeah i hit this today too :(
Hi @fortion71 @ed-sparkes
We've tried reproducing the issue using both your shared repository and our setup, but we couldn't reproduce it. Would you mind trying the CLI again? If you encounter any problems, please don't hesitate to report them. We appreciate your help in resolving this.
Description
Can't initialize gluestack using
gluestack-ui init
in my project that uses yarn modern (yarn v4)CodeSandbox/Snack link
https://github.com/resticker/gluetest-yarnmodern
Steps to reproduce
git clone https://github.com/resticker/gluetest-yarnmodern
yarn
to install dependenciesnpx gluestack-ui init
gluestack-ui Version
Latest
Platform
Other Platform
No response
Additional Information
Using yarn 4.3.1 (see package.json in repo)
npx gluestack-ui init
works fine with yarn classic (v1), but I use yarn modern to help with my monorepo.yarn dlx gluestack-ui init
doesn't work, either