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.

Uncaught (in promise) Error: DeltaPatcher should receive a base Bundle when being initialized

See original GitHub issue

Description

When trying to run react-native run-android on a linux machine I get the above error, The error is not related to hot reloading as it appears at the first attempt to debug the app

Code Example

import React, { Component } from 'react';
import { StatusBar, Dimensions, ImageBackground, Alert } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { View, Text, Spinner, Button } from 'native-base';
import { baseUrl } from '../shared/baseUrl';
import { User } from './Models/User';
import { GlobalFont } from 'react-native-global-font';

export default class Login extends Component {
    constructor(props) {
        super(props);
        this.state = {
            loading: true,
            phone: '',
            password: '',
            loginButtonContent: () => null
        }
    }
 ...........
            <View keyboardVerticalOffset={-100} behavior="padding" style={{ flex: 1 }}>
                <StatusBar translucent={true} backgroundColor="transparent" barStyle="light-content" />

                <ImageBackground
                    progressiveRenderingEnabled={true}
                    source={require('./images/login-background.png')}
                    resizeMode="cover"
                    style={{ padding: 0, borderRadius: 0, height: Dimensions.get('window').height, width: Dimensions.get('window').width, flex: 1, justifyContent: "center" }} >
                    <View style={{ padding: 36, paddingTop: Dimensions.get('window').height / 2, justifyContent: "center", flex: 1, margin: 0 }}>
 ..........
                    </View>
                </ImageBackground >
            </View>
        );
    }
}

Environment

React Native Environment Info: System: OS: Linux 4.14 Manjaro Linux undefined CPU: (4) x64 Intel® Core™ i5-4210U CPU @ 1.70GHz Memory: 375.55 MB / 7.69 GB Shell: 4.4.23 - /bin/bash Binaries: Node: 10.10.0 - /usr/bin/node npm: 6.4.1 - /usr/bin/npm IDEs: Android Studio: 3.3 npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.1 => 0.59.1 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

7reactions
yasicmdcommented, Jun 12, 2019

Closing the existing chrome debugger and opening a new one fixed for me.

6reactions
muhammadali2012commented, May 24, 2019

for me the error was because of faulty imports of component i.e in Correct Path or file name, in my case I was importing like import xyz from ‘Components/xyz’ instead of import xyz from ‘./Components/xyz’ Such a silly mistake but it wasted my whole day

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix 'DeltaPatcher should receive a base Bundle when ...
1)Normally this is due to a syntax error in your code. If you go to the terminal where your metro bundler is running...
Read more >
[facebook/react-native] Uncaught (in promise) Error: DeltaPatcher ...
[facebook/react-native] Uncaught (in promise) Error: DeltaPatcher should receive a base Bundle when being initialized - JavaScript. Description.
Read more >
Uncaught (in promise) Error: XMLHttpRequest failed
type or paste cobundle.js:530373 Uncaught (in promise) Error: Provider not set or invalid at Object.InvalidProvider (bundle.js:530373:16) at ...
Read more >
react-native @ 0.58.6 .. 0.59.2 - Package Diff
This is fragile since this relies on these values not getting reused. Consider ... throw new Error('Creating URL objects is not supported yet.');....
Read more >
React Native: Uncaught (in promise) Error - Anycodings.com
React Native: Uncaught (in promise) Error: DeltaPatcher should receive a base Bundle when being initialized I have la ...
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