Expo stuck, and unable to run via QR scan or web
Summary:
When running pnpm start to start Expo, I am unable to run the app via the Expo QR scan. Additionally, when running via the web, it gets stuck while doing expo-router/entry.js.
Steps to reproduce:
- Run
pnpm startin the project. - Attempt to scan the QR code with Expo Go.
- Alternatively, try running the app via the web.
Environment::
- Expo SDK: 51.0.31
- expo-router: ~3.5.23
- Node: v20.17.0
- npm: 10.8.2
- Operating System: Windows 11 Pro Build 22621
Expected behavior:
The application should start normally and be accessible via the Expo QR scan or the web without getting stuck.
Additional notes:
The issue seems to be related to expo-router. The problem is not entirely similar to the one described here, but it might be related.
Attachment
Hi @yjose, I have the same issue with web build, could you please clarify whether your starter supports web build or not?
any updates? i have the same issue
Hi @yjose @eessadrati @fardiansyah1808. I figured it out, it was nativewind windows path issue: https://github.com/nativewind/nativewind/issues/610 As temp fix in src\app_layout.tsx change "import '../../global.css';" to "import '../../node_modules/.cache/nativewind/global.css.web.css';" (it will work only for web build)
pnpm install [email protected]
fixed my issue (for the web)
@hmurovich yeah apparently we are still facing some issues with NativeWind on Windows devices. We are just waiting for the new official release of NativeWind to fix this issue.
Please try the suggestion from @eessadrati to fix the issue.
should be fixed as we migrate to the last nativewind version