Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dineshpithiya opened this issue Oct 8, 2024 · 2 comments

Comments

@dineshpithiya
Copy link

dineshpithiya commented Oct 8, 2024

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
@EntityAdam
Copy link

Adding to this. I also have a problem with character escapes. Unfortunately, my error looks worse because of the shell also interpreting the escapes poorly. (Windows / PowerShell terminal in VS Code)

λ Bundling failed 4314ms C:\repos\rn-baseline\default-template\node_modules\expo-router\node\render.js (4317 modules)
Web Bundling failed 4322ms C:\repos\rn-baseline\default-template\node_modules\expo-router\entry.js (4384 modules)                                                                                  

n-baselinedefault-templateolve module C:
ode_modules.cache
n-baselinedefault-template:\repos\rn-baseline\default-template\global.css: C:
ode_modules.cache
ativewindglobal.css could not be found within the project or in these directories:
  node_modules

@goran-paunovic
Copy link

Same error here. I really wanted to try out gluestack and lost last few days fighting with it. I don't think I will try it again in the near future, at least until it starts to deliver what it promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants