Skip to content

Fresh Expo 54 project + gluestack init has dependency and runtime problems #3215

@t3db0t

Description

@t3db0t

I've been following the other Expo 54 thread but I wanted to start a new one specifically for fresh, brand-new installs. Here's a repro:

https://github.com/t3db0t/expo54-gluestack3-test

This repo is the result of:

  1. pnpx create-expo-app@latest expo54-gluestack3-test
  2. cd expo54-gluestack3-test
  3. pnpx gluestack-ui init

During gluestack-ui init, you'll see:

Initializing gluestack-ui v3...

│
◇  Repository already cloned.
│
◇  Git pull successful.
│
○  ⏳ Installing dependencies. This might take a couple of minutes
 WARN  3 deprecated subdependencies found: glob@7.2.3, inflight@1.0.6, rimraf@3.0.2
 WARN  Issues with peer dependencies found
.
└─┬ expo-router 6.0.6
  └── ✕ unmet peer react-native-safe-area-context@">= 5.4.0": found 4.14.1

And then trying to run the app in Expo Go:

Logs for your project will appear below. Press Ctrl+C to exit.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
| [Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
iOS Bundled 4890ms node_modules/expo-router/entry.js (1582 modules)
 WARN  SafeAreaView has been deprecated and will be removed in a future release. Please use 'react-native-safe-area-context' instead. See https://github.com/th3rdwave/react-native-safe-area-context
 ERROR  [Error: Unable to manually set color scheme without using darkMode: class. See: https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually] 

Code: index.tsx
  19 |
  20 |   useEffect(() => {
> 21 |     setColorScheme(mode);
     |                   ^
  22 |     // eslint-disable-next-line react-hooks/exhaustive-deps
  23 |   }, [mode]);
  24 |
Call Stack
  useEffect$argument_0 (components/ui/gluestack-ui-provider/index.tsx:21:19) 

Code: _layout.tsx
  17 |   return (
  18 |     
> 19 |     <GluestackUIProvider mode="light">
     |     ^
  20 |       <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
  21 |       <Stack>
  22 |         <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
Call Stack
  RootLayout (app/_layout.tsx:19:5)

I've started investigating what's going on; it wasn't clear from the other thread if work is ongoing to support Expo 54 or what. Thanks all for your help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions