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

Getting many "Require cycles are allowed but..." errors when running Expo project on web on V1 #2514

Open
2 of 6 tasks
Misal-Ambasta opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Misal-Ambasta
Copy link

Description

Getting: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle after installing v1

CodeSandbox/Snack link

https://github.com/Misal-Ambasta/demo-gluestack-v1

Steps to reproduce

On Expo web it happens
1st method

  1. git clone https://github.com/Misal-Ambasta/demo-gluestack-v1.git
  2. npm install
  3. npm run web
  4. press w to open in web
  5. See console output with warnings

2nd method to reproduce
a. npm create gluestack@1
b. select: Expo app (Expo Router v3)
c. Enter project name
d. Inside the project run: npm run web
e. press w to open in web
f. See console output with warnings

gluestack-ui Version

latest

Platform

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

Other Platform

No response

Additional Information

I just followed the setup of v1(as it is stable version and v2 is in beta) from this url: https://v1.gluestack.io/ui/docs/guides/guides/install-rn#step-1-installation-and-initial-setup

then installed using npm create gluestack@1

After installation I started getting the below error. Even on installing manually, getting the same error as mentioned below.

  WARN  Require cycle: node_modules\@internationalized\date\dist\CalendarDate.main.js -> node_modules\@internationalized\date\dist\manipulation.main.js -> node_modules\@internationalized\date\dist\conversion.main.js -> node_modules\@internationalized\date\dist\GregorianCalendar.main.js -> node_modules\@internationalized\date\dist\utils.main.js -> node_modules\@internationalized\date\dist\CalendarDate.main.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
@Misal-Ambasta Misal-Ambasta added the bug Something isn't working label Oct 11, 2024
@Viraj-10
Copy link
Collaborator

Hey @Misal-Ambasta, you can use v2 directly it's stable now. in case you have any issues please report to github we will fix it.

Also this cyclic warning is coming in expo only and it's from react-aria you can track this issue here

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