Skip to content

Web Bundling failed - Metro error: SyntaxError: expo-app\global.css: Bad character escape sequence #35

Description

@dineshpithiya

I cloned the gluestack-ui-starter-kits repository and navigated into the expo-app folder. Then, I ran the yarn command. After a few minutes, the installation was complete. I ran yarn start, and it displayed several options. I chose the web option by pressing W.

› Web is waiting on http://localhost:8081

› Using Expo Go
› Press s │ switch to development build

› Press a │ open Android
› Press w │ open web

› Press j │ open debugger
› Press r │ reload app
› Press m │ toggle menu
› Press o │ open project code in your editor

It returns error like below

Web Bundling failed 15352ms C:\expo-app\node_modules\expo-router\entry.js (2701 modules)
λ Bundling failed 15376ms C:\expo-app\node_modules\expo-router\node\render.js (2687 modules)

Metro error: SyntaxError: C:\expo-app\global.css: Bad character escape sequence. (1:13)

> 1 | require('C:\expo-app\node_modules\.cache\nativewind\global.css');
    |              ^

Call Stack
  <unknown> (global.css)
Web Bundled 1604ms C:\expo-app\node_modules\expo-router\_error.js (326 modules)
› Stopped server

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