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

Open
1 of 6 tasks
ps1223 opened this issue Jan 13, 2025 · 2 comments
Open
1 of 6 tasks

Gluestack-ui init fails in Expo project #2707

ps1223 opened this issue Jan 13, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants