Vuex undefined не вариант - PullRequest
       27

Vuex undefined не вариант

0 голосов
/ 17 декабря 2018

Я работаю над сборкой мобильного приложения в vue-native, но продолжаю получать ту же ошибку при попытке загрузить что-то из моего API.Это ошибка:

    TypeError: undefined is not an object (evaluating 'store._modulesNamespaceMap')

This error is located at:
    in ReactVueComponent (at SceneView.js:17)
    in SceneView (at DrawerScreen.js:21)
    in DrawerScreen (at withCachedChildNavigation.js:69)
    in withCachedChildNavigation(DrawerScreen) (at DrawerNavigator.js:71)
    in Unknown (at createNavigator.js:13)
    in Navigator (at DrawerView.js:178)
    in RCTView (at View.js:60)
    in View (at createAnimatedComponent.js:154)
    in AnimatedComponent (created by DrawerLayout)
    in RCTView (at View.js:60)
    in View (created by DrawerLayout)
    in DrawerLayout (at DrawerView.js:158)
    in DrawerView (at DrawerNavigator.js:88)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:226)
    in NavigationContainer (at SceneView.js:17)
    in SceneView (at CardStack.js:466)
    in RCTView (at View.js:60)
    in View (at createAnimatedComponent.js:154)
    in AnimatedComponent (at Card.js:12)
    in Card (at PointerEventsContainer.js:39)
    in Container (at CardStack.js:498)
    in RCTView (at View.js:60)
    in View (at CardStack.js:414)
    in RCTView (at View.js:60)
    in View (at CardStack.js:413)
    in CardStack (at CardStackTransitioner.js:67)
    in RCTView (at View.js:60)
    in View (at Transitioner.js:142)
    in Transitioner (at CardStackTransitioner.js:19)
    in CardStackTransitioner (at StackNavigator.js:41)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:226)
    in NavigationContainer (created by ReactVueComponent)
    in RCTView (at View.js:60)
    in View (at Root.js:13)
    in Root (at connectStyle.js:384)
    in Styled(Root) (created by ReactVueComponent)
    in ReactVueComponent (created by ReactVueComponent)

Я пытаюсь загрузить недавнюю.data.length в моем представлении со следующим кодом:

            <nb-text>{{recent.data.length }}</nb-text>

и

computed: {
        ...mapGetters('dashboard', ['recent']),
    },

Кто-нибудь знает, что здесь может быть не так?Я попытался найти ошибку, но не смог найти ничего полезного.

...