TypeError: 0, _toolkit.configureStore is not a function (it is undefined)
error
store.js
import { configureStore } from ‘@reduxjs/toolkit’
// import authReducer from ‘./authSlice’
import { thunk } from ‘redux-thunk’
const store = configureStore({
reducer: {}
// middleware: getDefaultMiddleware => getDefaultMiddleware().concat(thunk) // thunk is included by default
})
export default store
App.js
import store from ‘./store/store’
import ‘react-native-gesture-handler’
import { SafeAreaProvider } from ‘react-native-safe-area-context’
import AppNavigator from ‘./navigation/AppNavigator’
import { Provider } from ‘react-redux’
question
how to solve this and why it happens in web it works but in expo go not
Rifkhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.