Unexpected token ';' no stack error
See original GitHub issueDescription
I try to run " npx react-native run-android " with my emulator I will create new metro terminal and build success but in my screen emulator show error Unexpected token ‘;’ Unexpected token ‘;’ no stack error no stack error How I slove it ?
Version
react-native-cli: 2.0.1, react-native: 0.64.3 ,android version 11
Output of npx react-native info
warn Package react-native-ios-context-menu has been ignored because it contains invalid configuration. Reason: Cannot find module ‘react-native-ios-context-menu/package.json’ Require stack:
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/resolveNodeModuleDir.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/releaseChecker/index.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/start/runServer.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/start/start.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/index.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js
- /mnt/d/LndHub/BlueWallet/node_modules/react-native/cli.js info Fetching system and libraries information… System: OS: Linux 4.4 Ubuntu 20.04.3 LTS (Focal Fossa) CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 4.21 GB / 15.85 GB Shell: 5.0.17 - /bin/bash Binaries: Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node Yarn: 1.22.10 - /mnt/c/Users/NeayNie/AppData/Roaming/npm/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm Watchman: Not Found SDKs: Android SDK: Not Found IDEs: Android Studio: Not Found Languages: Java: 11.0.13 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: ^0.64.3 => 0.64.3 npmGlobalPackages: react-native: Not Found
Steps to reproduce
-
first terminal : run " npm start " result :
-
second terminal : run " npx react-native run-android " result :
-
found error !!
Snack, code example, screenshot, or link to a repository
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Unexpected token '?' no stack in React Native
I was having this exact problem, but only in Android. The problem was caused by my use of a nullish coalescing assignment operator...
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >React Native Unexpected token error while running in Emulator
Please click below link to help me ...
Read more >Have a JavaScript Unexpected Token Error? Check Your Syntax
Today, we are discussing the Unexpected Token Error within our JavaScript Error Handling series. This JavaScript error is a subset of the ...
Read more >[Solved]-Unhandled JS Exception: Unexpected token '<' no stack
Coding example for the question Unhandled JS Exception: Unexpected token '<' no stack.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re on a really old RN version. Consider updating to 0.67.x and try again.
Why no stack trace to find out issue? It’s a terrible framework and consistently blocks me with weird issues like this. No stack? Why not.