Unexpected Token / No Stack Error Android Emulator
See original GitHub issueDescription
Hi all,
I have a frustrating issue that popped up recently and can’t seem to find a solution. If I run my expo app on my local Android Studio Emulator, I get the following error randomly (sometimes it works fine, then other times it gives this error). This has to be the emulator because when I run Expo Go on my physical device, it runs fine whilst giving the same error on the Emulator.

I tried this solution by updating my babel.config.js as so:
module.exports = function(api) { api.cache(true); return { presets: [[‘babel-preset-expo’, { unstable_disableES6Transforms: true }]], plugins: [ [“module:react-native-dotenv”] ] }; };
but this did not solve my issue. Any help would be appreciated.
Version
0.68.2
Output of npx react-native info
System: OS: Windows 10 10.0.19044 CPU: (8) x64 AMD FX™-8350 Eight-Core Processor Memory: 4.64 GB / 15.90 GB Binaries: Node: 16.16.0 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7784292 Visual Studio: Not Found Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
It seems to have resolved after two system reboots, including wiping data of emulator
Closing due to this