DEV Community

KerryJava
KerryJava

Posted on

Help: My expo+nativewind project runs well on the web (Chrome), but encounters errors on Android + expoGo.

I created an Expo project,
and then followed the official documentation to configure Nativewind v5 (https://www.nativewind.dev/v5/getting-started/installation).

My project runs well on the web(Chrome), but it encounters errors when run on Expo Go on Android phones.

Error prompt on the terminal:
ERROR Error: failed to deserialize; expected an object-like struct named Specifier, found ()
at compile (E:\code\expo\nativewindV5\node_modules\react-native-css\dist\commonjs\compiler\compiler.js:98:7)
at Object.transform (E:\code\expo\nativewindV5\node_modules\react-native-css\dist\commonjs\metro\metro-transformer.js:23:45)


Please help me!
I've spent the whole day trying to solve it, but I haven't succeeded.



run well on the web



error on Android phone + expoGo


error on Android phone + expoGo


error on Android phone + expoGo

Top comments (0)