marklawlor / nativewind

React Native utility-first universal design system - powered by Tailwind CSS
https://nativewind.dev
MIT License
4.3k stars 233 forks source link

SyntaxError: global.css: Cannot read properties of undefined (reading 'raw') #885

Closed ipr0310 closed 1 month ago

ipr0310 commented 1 month ago

Describe the bug I am trying to create a build using Expo EAS Build. Specifically an .apk for my physical device, just for testing.

The project is open source, is a cryptocurrency wallet: https://github.com/ipr0310/signum-mobile-wallet

This is the error log: SyntaxError: global.css: Cannot read properties of undefined (reading 'raw')

I am using Nativewind V4 + Expo router

I followed carefully instructions for installing NativeWind I am totally sure i created global.css on root directory as requested by Mr. Docs https://www.nativewind.dev/v4/getting-started/expo-router

To Reproduce Steps to reproduce the behavior:

  1. Fork that repository
  2. Try to create an .apk build for testing
  3. Get the error logs on Expo EAS

Expected behavior The build must be completed without any errors

Screenshots Error log from Expo EAS image

Additional context If you want to reproduce the issue, just fork that project and try to make a build with Expo EAS The project is open source, is a cryptocurrency wallet: https://github.com/ipr0310/signum-mobile-wallet


Second additional context Everything works normally on my computer using development client or expo go I already developed a bunch of features already and tested the app on the following devices:


Third additional context I run the app with npx expo start --no-dev all went totally good

ipr0310 commented 1 month ago

Found the fix: i had to update NativeWind https://github.com/marklawlor/nativewind/issues/796 Future v4 tester, enjoy this epic tool :D