Skip to content

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

@KerryJavaLin

Description

@KerryJavaLin

★★★★★★★★★
The problem has been temporarily solved.

1、Give up manual configuration.
2、Download an APP template:
react-native-reusables-templates

★★★★★★★★★

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 :
Image

error on Android phone + expoGo:
Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions