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

Gluestack-ui init fails in Expo project #2707

Closed
1 of 6 tasks
ps1223 opened this issue Jan 13, 2025 · 5 comments
Closed
1 of 6 tasks

Gluestack-ui init fails in Expo project #2707

ps1223 opened this issue Jan 13, 2025 · 5 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists glustack-ui-cli waiting for response

Comments

@ps1223
Copy link

ps1223 commented Jan 13, 2025

Description

While trying to init gluestack-ui manually in a fresh expo project

CodeSandbox/Snack link

https://github.com/ps1223/gluestack-sample

Steps to reproduce

  1. Create an expo app npx create-expo-app@latest
  2. Then init gluestack-ui npx gluestack-ui init

Then getting this error

image

Trying this in windows

gluestack-ui Version

3.3.1

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

No response

@ps1223
Copy link
Author

ps1223 commented Jan 14, 2025

I went through the "init" implementation of Gluestack-ui and found the cache where we clone the Gluestack-ui repo.

It seems the path is corrupted, tried to delete the .gluestack directory at home path is corrupted. I deleted the directory and tried init again and it seems to work fine now.

Think this issue might occur when the first time the "init" is interrupted but the ".gluestack" directory is created at the home path.

Will try to reproduce the issue

@ps1223
Copy link
Author

ps1223 commented Jan 14, 2025

Yes, the issue is reproducible,

Steps:

  1. Delete the '.gluestack' directory in home.
  2. Add gluestack-ui to an existing project with npx gluestack-ui init command.
  3. Then cancel the installation while cloning is in progress.
  4. Now try to add gluestack-ui as step 2.
  5. You will get the issue above reported till we delete the .gluestack directory from home.

@akash3gtm
Copy link
Collaborator

Which OS are you using?
can you try again with the latest version?

@akash3gtm
Copy link
Collaborator

akash3gtm commented Feb 21, 2025

It is a known issue with windows OS and we're in the process of debuggin it.

duplicate : 108
Please refer to that issue for this.

All the updates will be posted there.

@github-project-automation github-project-automation bot moved this from In Progress to Done in gluestack-ui project management. Feb 21, 2025
@akash3gtm akash3gtm added the duplicate This issue or pull request already exists label Feb 21, 2025
@akash3gtm
Copy link
Collaborator

Please open another issue in cli repo if you're not using Windows OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists glustack-ui-cli waiting for response
Projects
Development

No branches or pull requests

3 participants