gluestack / gluestack-ui

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

gluestack starter for v2 not building #2439

Closed bidah closed 1 month ago

bidah commented 2 months ago

Description

can't run the app

CodeSandbox/Snack link

https://github.com/bidah/gluestack-v2-starter-issue

Steps to reproduce

  1. download reproducible repo with error https://github.com/bidah/gluestack-v2-starter-issue
  2. try to run app with bun start or bun start -c

getting this error:

TypeError: Cannot read properties of null (reading 'nativewind')
TypeError: Cannot read properties of null (reading 'nativewind')
    at /Users/rofi/Programing/gluestack-v2/node_modules/nativewind/src/metro/tailwind/v3/index.ts:75:19
    at Array.some (<anonymous>)
    at tailwindConfigV3 (/Users/rofi/Programing/gluestack-v2/node_modules/nativewind/src/metro/tailwind/v3/index.ts:74:37)
    at tailwindConfig (/Users/rofi/Programing/gluestack-v2/node_modules/nativewind/src/metro/tailwind/index.ts:17:28)
    at withNativeWind (/Users/rofi/Programing/gluestack-v2/node_modules/nativewind/src/metro/index.ts:33:39)
    at Object.<anonymous> (/Users/rofi/Programing/gluestack-v2/metro.config.js:16:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
error: script "start" exited with code 1

gluestack-ui Version

latest

Platform

Other Platform

No response

Additional Information

No response

Viraj-10 commented 2 months ago

Hey @bidah, Thanks for reporting the issue. We will have a look and get back to you.

vaibhk20 commented 1 month ago

Hi @bidah, thank you for reporting the issue. We have updated our starter-kits for gluestack-ui v2 and the concerned issue should be resolved.