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.

Undefined is not an object (evaluating 'RCTAsyncStorage.multiMerge')

See original GitHub issue

This issue was originally created by @boreales as facebook/react-native#22556.


Environment

React Native Environment Info: System: OS: macOS 10.14.1 CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz Memory: 463.56 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 9.5.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 26, 27 Build Tools: 27.0.3 System Images: android-27 | Google Play Intel x86 Atom IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz => 0.57.1 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1

Description

image

Reproducible Demo

// Store/configureStore.js

import { createStore } from 'redux'
import toggleFavorite from './reducers/favoriteReducer'
import setAvatar from './reducers/avatarReducer'
import { persistCombineReducers } from 'redux-persist'
import storage from 'redux-persist/lib/storage'

const rootPersistConfig = {
  key: 'root',
  storage: storage
}

export default createStore(persistCombineReducers(rootPersistConfig, {toggleFavorite, setAvatar}))

The problem seems to be the same as #21948 but I have last react-native version and can’t fix it anyway. Any idea ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

12reactions
immortalxcommented, Mar 13, 2019

In react-native 0.59 this happens only in android for me, ios runs fine.

3reactions
EduVencovskycommented, Mar 13, 2019

In react-native 0.59, this happens in android even if you don’t use mergeItem or multiMerge

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined is not an object (evaluating 'RCTAsyncStorage ...
For now, I can suggest checking if multiMerge / mergeItem is available to avoid crashes.
Read more >
react native - RCTAsyncStorage.multiMerge undefined
Undefined is not an object (evaluating 'RCTAsyncStorage.multiMerge' (React-native-asyncstorage). Related.
Read more >
null is not an object (evaluating 'RCTAsyncStorage.multiMerge')
multiMerge ) {. It will shortcircuit to undefined (thus making the if false ) instead of throwing error from trying to check in...
Read more >
Render Error undefined is not an Object (evaluating _react ...
In this video ,we fixed an error "Render Error undefined is not an Object ( evaluating _react.react .createElement)".
Read more >
User Yusril Maulidan Raji - Islam Stack Exchange
Undefined is not an object (evaluating 'RCTAsyncStorage.multiMerge' (React-native-asyncstorage). 5. DataTable 1.10 - Disable row select event for certain ...
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