Every app crash instantly on debug

Hello, i got an problem with all new apps i create. Everytime i try to debug my applications it crash and i get this error:

FATAL EXCEPTION: mqt_js

java.lang.AssertionError: No source URL loaded, have you initialised the instance?

FATAL EXCEPTION: mqt_js
Process: com.testapp, PID: 17909
java.lang.AssertionError: No source URL loaded, have you initialised the instance?
	at com.facebook.infer.annotation.Assertions.assertNotNull(Assertions.java:35)
	at com.facebook.react.modules.debug.SourceCodeModule.getTypedExportedConstants(SourceCodeModule.java:39)
	at com.facebook.fbreact.specs.NativeSourceCodeSpec.getConstants(NativeSourceCodeSpec.java:35)
	at com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:129)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
	at android.os.Looper.loop(Looper.java:246)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
	at java.lang.Thread.run(Thread.java:923)

The weird thing is, it happen to all my new projects, i already tryed 5 Versions of expo-cli, but it happen to every project. My old Projects are working normaly, i can debug normal, nothing strange.

I’m really confused, because i tryed the old expo-cli version that i used in my working project, but project crash also on debug. I create my apps using “expo init --npm” and use bare workflow. I’m struggelin with this error so much, i googled hundreds of posts, but nothing could help me. What could be the problem? I’m very thankfull for any kind of help, thanks :=)

Best Regards
DreamGamer

I have another information, i tried to create a normal react-native app without expo and this is working normal(debugging is working), so it need to be a problem with expo in my case.

Oh i found the error i think, it’s the same as the google posts i found, animated v2 bring the app to crash because of turbomodule. Now i’m using Flipper, but debugging redux don’t work, i applyed redux-flipper as a middlewear and installed the plugin in flipper, but nothing happen, is there another thing i need to do?

Another information:

Flipper says: Plugin ‘Redux Debugger’ is not supported by the selected application ‘TestApp’ (Android).

But my source code has redux-flipper in it:

const middlewares = [];
middlewares.push(ReduxThunk);

if (__DEV__) {
    const createDebugger = require("redux-flipper").default;
    middlewares.push(createDebugger());
}

const store = createStore(rootReducer, applyMiddleware(...middlewares));

Hey @dreamgamer, could you provide a minimal, public repro case of this so that we can clone and try to debug locally. Without seeing code and understanding the project setup, it’ll be quite difficult to help.

Cheers,
Adam

Hello @adamjnav, i here is a minimal of my projects with the same issue.
App.js:

import React from "react";
import { Button, StyleSheet, Text, View } from "react-native";
import { Provider, useDispatch, useSelector } from "react-redux";
import { combineReducers, createStore, applyMiddleware } from "redux";
import ReduxThunk from "redux-thunk";
import testappReducer from "./store/reducer/testapp";
import * as testappActions from "./store/actions/testapp";
const rootReducer = combineReducers({
    testapp: testappReducer,
});

const middlewares = [];
middlewares.push(ReduxThunk);

if (__DEV__) {
    console.info("Developer mode enabled");
    const createDebugger = require("redux-flipper").default;
    middlewares.push(createDebugger());
}

const store = createStore(rootReducer, applyMiddleware(...middlewares));

export default function App() {
    return (
        <Provider store={store}>
            <TestApp />
        </Provider>

    );
}

const TestApp = props => {
    const dispatch = useDispatch();
    const count = useSelector(state => state.testapp.count);
    return (
        <View style={styles.container}>
            <Text>{count}</Text>
            <Button
                title="Add"
                onPress={() => {
                    dispatch(testappActions.add());
                }}
            />
        </View>
    );
};

const styles = StyleSheet.create({
    container: {
        flex: 1,
        alignItems: "center",
        justifyContent: "center",

    },

});

./store/reducer/testapp.jss:

import { ADD } from "../actions/testapp";

const initialState = {
    count: 0,
};

export default (state = initialState, action) => {
    switch (action.type) {
        case ADD:
            return {
                count: ++state.count,
            };
        default:
            return state;
    }
};

./store/actions/testapp.js

export const ADD = "ADD";

export const add = () => {
    return { type: ADD};
};

And Flipper says this:

Oh, i found the error, i installed 2 versions of redux debugger in flipper and the one i needed was in “Disabled” in Flipper. I clicked on “enable redux debugger” and now it’s working fine :=)