gluestack / gluestack-ui

React & React Native Components & Patterns (copy-paste components & patterns crafted with Tailwind CSS (NativeWind))
https://gluestack.io/
MIT License
2.56k stars 117 forks source link

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

Open Misal-Ambasta opened 1 week ago

Misal-Ambasta commented 1 week ago

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

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.
Viraj-10 commented 5 days ago

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