Unexpected keyword 'typeof' #44548
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Needs: Triage 🔍
Description
Hi, I got this weird issue after running
npx react-native run-android
in my new project.Build success but got this error while running the app:
{PROJECT_DIR/node_modules/react-native/index.js: Unexpected keyword 'typeof'
in file node_modules/react-native/index.js:
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo'; import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator'; import typeof Button from './Libraries/Components/Button'; import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
Steps to reproduce
React Native Version
0.74.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/nazrincode
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: