I have the same problem.
Steps to reproduce:
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.