Attempted import error: 'AR' is not exported from './deprecated'

  1. SDK Version:~37.0.3
  2. Platforms(Android/iOS/web/all):Andriod and web

It gives me warning while running an empty app all what I installed is stack navigation.

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-community/masked-view": "0.1.6",
    "@react-navigation/native": "^5.4.2",
    "@react-navigation/stack": "^5.3.9",
    "blynk-library": "^0.5.4",
    "expo": "~37.0.3",
    "expo-font": "~8.1.0",
    "native-base": "^2.13.12",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-reanimated": "~1.7.0",
    "react-native-safe-area-context": "0.7.3",
    "react-native-screens": "~2.2.0",
    "react-native-web": "~0.11.7"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "babel-preset-expo": "~8.1.0"
  },
  "private": true
}

warning messages:

E:/Scrap/smarty/node_modules/expo/build/Expo.js
Attempted import error: 'AR' is not exported from './deprecated'.

E:/Scrap/smarty/node_modules/expo/build/logs/LogSerialization.js
Attempted import error: 'react-native/Libraries/Core/Devtools/symbolicateStackTrace' does not contain a default export (imported as 'symbolicateStackTrace').

E:/Scrap/smarty/node_modules/react-native/Libraries/Performance/Systrace.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
3 Likes

This is caused by native-base UI package… We have the same problem =)

We Are also having the same issue

is there any work around on this problem?

Same for us as well.

For us the message

Attempted import error: ‘AR’ is not exported from ‘./deprecated’

seems to be related with the “expo-font” package.

I’m not using expo-font but am still getting the exact import error message.

Attempted import error: ‘AR’ is not exported from ‘./deprecated’

this is fixed in sdk 38. you can ignore the warning for now, it has no impact on your app

also having the same issue!

/node_modules/expo/build/Expo.js
Attempted import error: ‘AR’ is not exported from ‘./deprecated’.

“expo”: “~37.0.3”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz”,

For those that can’t wait, you can “fix” it yourself, using code from Deprecated AR on web by EvanBacon · Pull Request #8454 · expo/expo · GitHub.

In your <path-to-node_modules>/expo/build/deprecated.web.js, change the contents to:

import * as AR from './AR';

import * as Updates from './Updates/Updates';

export { AR, Updates };

Keep in mind this is not a real fix. And that you can just use the next expo SDK (38), whenever it comes out.

1 Like