title: Expo SDK 44 upgrade ERROR - App.js: [BABEL]: Unexpected token '.'
body: <p>I have recently upgraded my app from SDK 40 to SDK 44 and came across this error App.js: [BABEL]: Unexpected token '.' (While processing: /Users/user/path/to/project/node_modules/babel-preset-expo/index.js)</p>
  <p>Error Stack Trace:</p>
  <pre><code>App.js: [BABEL]: Unexpected token '.' (While processing: /Users/user/path/to/project/node_modules/babel-preset-expo/index.js)
  /Users/user/path/to/project/node_modules/babel-preset-expo/index.js:48
          ...(options?.jsxRuntime !== 'classic' &amp;&amp; {
                      ^
  
  SyntaxError: Unexpected token '.'
      at wrapSafe (internal/modules/cjs/loader.js:931:16)
      at Module._compile (internal/modules/cjs/loader.js:979:27)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
      at Module.load (internal/modules/cjs/loader.js:879:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Module.require (internal/modules/cjs/loader.js:903:19)
      at require (internal/modules/cjs/helpers.js:74:18)
      at loadCjsDefault (/Users/user/path/to/project/node_modules/@babel/core/lib/config/files/module-types.js:85:18)
      at loadCjsOrMjsDefault (/Users/user/path/to/project/node_modules/@babel/core/lib/config/files/module-types.js:57:16)
  </code></pre>
  <p>Here is my babel.config.js:</p>
  <pre><code>return {
      presets: ['babel-preset-expo', { jsxRuntime: 'automatic' }],
      plugins: [
          ['inline-dotenv'],
          ['.....']
      ]
  }
  </code></pre>
  <p>Here is my package.json:</p>
  <pre><code>{
      &quot;main&quot;: &quot;node_modules/expo/AppEntry.js&quot;,
      &quot;scripts&quot;: {
          &quot;start&quot;: &quot;expo start&quot;,
          &quot;android&quot;: &quot;expo start --android&quot;,
          &quot;ios&quot;: &quot;expo start --ios&quot;,
          &quot;web&quot;: &quot;expo start --web&quot;,
          &quot;eject&quot;: &quot;expo eject&quot;,
          &quot;test&quot;: &quot;jest&quot;
      },
      &quot;jest&quot;: {
          &quot;preset&quot;: &quot;jest-expo&quot;
      },
      &quot;dependencies&quot;: {
          &quot;@babel/plugin-transform-react-jsx&quot;: &quot;^7.16.5&quot;,
          &quot;@react-native-async-storage/async-storage&quot;: &quot;~1.15.0&quot;,
          &quot;@react-native-community/art&quot;: &quot;^1.2.0&quot;,
          &quot;@react-native-community/datetimepicker&quot;: &quot;4.0.0&quot;,
          &quot;@react-native-community/masked-view&quot;: &quot;0.1.10&quot;,
          &quot;@react-native-community/netinfo&quot;: &quot;7.1.3&quot;,
          &quot;@react-native-community/push-notification-ios&quot;: &quot;^1.2.2&quot;,
          &quot;@react-native-community/slider&quot;: &quot;4.1.12&quot;,
          &quot;@react-navigation/native&quot;: &quot;^5.1.4&quot;,
          &quot;aws-amplify&quot;: &quot;^3.3.1&quot;,
          &quot;aws-amplify-react-native&quot;: &quot;^4.2.6&quot;,
          &quot;axios&quot;: &quot;^0.19.2&quot;,
          &quot;expo&quot;: &quot;^44.0.0&quot;,
          &quot;expo-app-loading&quot;: &quot;~1.3.0&quot;,
          &quot;expo-barcode-scanner&quot;: &quot;~11.2.0&quot;,
          &quot;expo-camera&quot;: &quot;~12.1.0&quot;,
          &quot;expo-constants&quot;: &quot;~13.0.0&quot;,
          &quot;expo-font&quot;: &quot;~10.0.4&quot;,
          &quot;expo-linking&quot;: &quot;~3.0.0&quot;,
          &quot;expo-mail-composer&quot;: &quot;~11.1.0&quot;,
          &quot;expo-notifications&quot;: &quot;~0.14.0&quot;,
          &quot;expo-permissions&quot;: &quot;~13.1.0&quot;,
          &quot;expo-secure-store&quot;: &quot;~11.1.0&quot;,
          &quot;expo-sqlite&quot;: &quot;~10.1.0&quot;,
          &quot;expo-updates&quot;: &quot;~0.11.2&quot;,
          &quot;expo-web-browser&quot;: &quot;~10.1.0&quot;,
          &quot;file-saver&quot;: &quot;^2.0.2&quot;,
          &quot;jsbarcode&quot;: &quot;^3.11.3&quot;,
          &quot;link&quot;: &quot;^0.1.5&quot;,
          &quot;metro-config&quot;: &quot;^0.64.0&quot;,
          &quot;npm&quot;: &quot;^8.3.0&quot;,
          &quot;qs&quot;: &quot;^6.9.4&quot;,
          &quot;react&quot;: &quot;17.0.1&quot;,
          &quot;react-dom&quot;: &quot;17.0.1&quot;,
          &quot;react-native&quot;: &quot;https://github.com/expo/react-native/archive/sdk-44.0.0.tar.gz&quot;,
          &quot;react-native-barcode-expo&quot;: &quot;^1.1.1&quot;,
          &quot;react-native-elements&quot;: &quot;^3.2.0&quot;,
          &quot;react-native-fs&quot;: &quot;^2.16.6&quot;,
          &quot;react-native-gesture-handler&quot;: &quot;~2.1.0&quot;,
          &quot;react-native-modal&quot;: &quot;^11.5.6&quot;,
          &quot;react-native-modal-datetime-picker&quot;: &quot;^8.6.0&quot;,
          &quot;react-native-paper&quot;: &quot;^3.10.1&quot;,
          &quot;react-native-push-notification&quot;: &quot;^3.5.2&quot;,
          &quot;react-native-reanimated&quot;: &quot;~2.3.1&quot;,
          &quot;react-native-router-flux&quot;: &quot;^4.2.0&quot;,
          &quot;react-native-safe-area-context&quot;: &quot;3.3.2&quot;,
          &quot;react-native-screens&quot;: &quot;~3.10.1&quot;,
          &quot;react-native-snap-carousel&quot;: &quot;^3.9.1&quot;,
          &quot;react-native-svg&quot;: &quot;12.1.1&quot;,
          &quot;react-native-web&quot;: &quot;0.17.1&quot;,
          &quot;react-navigation-animated-switch&quot;: &quot;^0.6.4&quot;,
          &quot;react-navigation-drawer&quot;: &quot;^2.4.11&quot;,
          &quot;react-navigation-header-buttons&quot;: &quot;^3.0.5&quot;,
          &quot;react-router-dom&quot;: &quot;^6.0.0-alpha.3&quot;,
          &quot;yarn&quot;: &quot;^1.22.17&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@babel/core&quot;: &quot;^7.12.9&quot;,
          &quot;@babel/runtime&quot;: &quot;^7.9.2&quot;,
          &quot;@react-native-community/eslint-config&quot;: &quot;^0.0.7&quot;,
          &quot;babel-jest&quot;: &quot;^25.1.0&quot;,
          &quot;babel-plugin-inline-dotenv&quot;: &quot;^1.6.0&quot;,
          &quot;babel-preset-expo&quot;: &quot;9.0.1&quot;,
          &quot;eslint&quot;: &quot;^6.8.0&quot;,
          &quot;expo-cli&quot;: &quot;^5.0.2&quot;,
          &quot;jest&quot;: &quot;^26.6.3&quot;,
          &quot;jest-expo&quot;: &quot;^44.0.0&quot;,
          &quot;metro-react-native-babel-preset&quot;: &quot;^0.66.2&quot;,
          &quot;react-test-renderer&quot;: &quot;^16.13.1&quot;
      },
      &quot;private&quot;: true
  }
  </code></pre>
  <p>Any help will be greatly appreciated.</p>