question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected token ';' no stack error

See original GitHub issue

Description

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 ?

image

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

  1. first terminal : run " npm start " result : image

  2. second terminal : run " npx react-native run-android " result : image

  3. found error !!

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
cortinicocommented, Jan 28, 2022

react-native-cli: 2.0.1, react-native: 0.64.3 ,android version 11

You’re on a really old RN version. Consider updating to 0.67.x and try again.

7reactions
willkscommented, Mar 3, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found