79556265

Date: 2025-04-04 21:22:30
Score: 2.5
Natty:
Report link

I have the same problem.

Steps to reproduce:

  1. npx create-expo-app@latest (create a new project)
  2. Install watchman, xcode and command line tools (if you haven't already)
  3. npx expo install expo-dev-client
  4. npx expo run:ios Until here everything's fine. Project runs and it's Saul Goodman.

Add a dependency: 5) npx expo install react-native-svg 6) npx expo run:ios

Project runs fine -again- but in the simulator you get said error. "Compiling JS failed: 1208:3:import declaration must be at top level of module" and a stacktrace.

Screenshot:

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • High reputation (-1):
Posted by: noripcord