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.

TypeError: undefined is not an object (evaluating 'l.default.manifest.android.config.googleMaps')

See original GitHub issue

🐛 Bug Report

TypeError: undefined is not an object (evaluating ‘l.default.manifest.android.config.googleMaps’) at Ul([native code]) at Pl([native code]) at callImmediates([native code]) at value([native code]) at value([native code])

Summary of Issue (just a few sentences)

React native maps not working on Android standalone app. App is crashing and not rendering any maps on screen.

Environment

System: OS: WINDOWS 10 node: 10.16.0 npm: 6.14.4 yarn: 1.22.4 npmPackages: “expo”: “~37.0.3”, “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-maps”: “0.26.1”,

Platform: ANDROID SDK 27

app.json:

{
  "expo": {
    "name": "digidirectory",
    "slug": "digi-directory",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "primaryColor": "#27d8a1",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "facebookAppId": "584981585556234", 
    "androidStatusBar": {
      "hidden": false,
      "translucent": false,
      "backgroundColor": "#23c290",
      "barStyle": "light-content"
    },
    "ios": {
      "bundleIdentifier": "com.digipakistan.digitaldirectory",
      "buildNumber": "1.0.0",
      "supportsTablet": true,
      "infoPlist": {
        "UIBackgroundModes": [
          "location",
          "fetch"
        ]
      }
    },
    "android": {
      "package": "com.digipakistan.digitaldirectory",
      "versionCode": 1,
      "backgroundColor": "#ffffff",
      "icon": "./assets/icon.png",
      "adaptiveIcon": {
        "foregroundImage": "./assets/icon.png",
        "backgroundColor": "#ffffff"
      },
      "permissions": [
        "ACCESS_COARSE_LOCATION",
        "ACCESS_FINE_LOCATION",
        "CAMERA",
        "WRITE_CONTACTS",
        "WRITE_EXTERNAL_STORAGE"
      ],
      "googleServicesFile": "./google-services.json",
      "config": {
        "googleSignIn": {
          "apiKey": "AIzaSyCdI*********E594nPXik-ase_H9T0",
          "certificateHash": "34a41f29d***********5ad33beea00873037ba2443"
        },
        "googleMaps": {
          "apiKey": "AIzaSyBTpXf**********Qe8Siai77JIVXQMmUc"
        }
      }
    },
    "description": "Digital Directory app, Release: 1.0.0",
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "tutors-house",
            "project": "digi-directory",
            "authToken": "73057c6f94**********2b8aaff78f2aac6b194987863f2df94256bd6b"
          }
        }
      ]
    }
  }
}

Reproducible Demo

Download the standalone app from here: https://we.tl/t-rF2Z7xwTw4

Steps to Reproduce

  • Open app and login, choose customer and login with email/password: Email: abcd@gmail.com Password: 12345678

  • After signing in to the app with email/password, Maps screen is expected to be shown but app crashes.

  • Sentry shows this error: TypeError: undefined is not an object (evaluating ‘l.default.manifest.android.config.googleMaps’) at Ul([native code]) at Pl([native code]) at callImmediates([native code]) at value([native code]) at value([native code])

Issue link: https://sentry.io/share/issue/b1cd2b27557d4d1d8f35a9ef1596188d/

Expected Behavior vs Actual Behavior

After signing in to the app with email/password, Maps screen is expected to be shown but app crashes.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
SaimAhmedSheikhcommented, Jun 10, 2020

I am very confused and need help to figue out this issue. I’m stuck and find no solution to this problem. Please help.

0reactions
brentvatnecommented, Jul 14, 2020

the ios.config and android.config keys are not included in your production manifest because they contain api keys that some might want to keep private, such as your google maps api key. we only use those during the build process. @tommybru will update the documentation to make this more clear. we may want to reconsider this in the future for clarity, or remove the config keys in development as well for consistency

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not an object (evaluating '(0,t(r(d[3 ...
I find my problem here and maybe will help anyone on the future so : i delete the env parameter on the getEnvVars...
Read more >
Typeerror: undefined is not an object react-native - 免费编程教程
Crunchyroll Review, TypeError: undefined is not an object (evaluating 'l.default.manifest.android.config.googleMaps') #8708 已关闭SaimAhmedSheikh 已于2020 ...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Safari Technology Preview Release Notes. Release 160. Note: Shared Tab Groups and syncing for Tab Groups, Website Settings, and Web Extensions are not...
Read more >
null is not an object react native date picker - You.com | The AI ...
I receive the following error when trying to open the modal… TypeError: null is not an object (evaluating '_reactNative.NativeModules.RNDatePickerManager.
Read more >
react-native-android-location-enabler - Bountysource
[Unhandled promise rejection: TypeError: null is not an object (evaluating '_reactNativeAndroidLocationEnabler.default.promptForEnableLocationIfNeeded')].
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