react-native-template-obytes icon indicating copy to clipboard operation
react-native-template-obytes copied to clipboard

Expo stuck, and unable to run via QR scan or web

Open fardiansyah1808 opened this issue 1 year ago • 5 comments

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:

  1. Run pnpm start in the project.
  2. Attempt to scan the QR code with Expo Go.
  3. Alternatively, try running the app via the web.

Environment::

  1. Expo SDK: 51.0.31
  2. expo-router: ~3.5.23
  3. Node: v20.17.0
  4. npm: 10.8.2
  5. 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

image

fardiansyah1808 avatar Aug 27 '24 15:08 fardiansyah1808

Hi @yjose, I have the same issue with web build, could you please clarify whether your starter supports web build or not?

hmurovich avatar Sep 11 '24 19:09 hmurovich

any updates? i have the same issue

eessadrati avatar Sep 14 '24 18:09 eessadrati

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)

hmurovich avatar Sep 15 '24 08:09 hmurovich

pnpm install [email protected] fixed my issue (for the web)

eessadrati avatar Sep 16 '24 00:09 eessadrati

@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.

yjose avatar Sep 16 '24 11:09 yjose

should be fixed as we migrate to the last nativewind version

yjose avatar Oct 25 '24 14:10 yjose