Getting weird syntax error in expo cli but not in Snacks

Hi I kept being told my react-native JS failed to compile in Expo web but it runs perfectly well on Snacks. What might be the issue with my setup?

Expo CLI 3.20.1 environment info:
System:
OS: Linux 4.15 Linux Mint 19.3 (Tricia)
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 12.16.3 - /usr/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.14.5 - /usr/bin/npm
npmPackages:
expo: ^37.0.8 => 37.0.8
react: ^16.11.0 => 16.11.0
react-native: ^0.62.2 => 0.62.2
npmGlobalPackages:
expo-cli: 3.20.1

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.