You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I activate the sync I get the following error:
vuex.js?90cb:123 Uncaught TypeError: Cannot read property 'getters' of undefined
at Vue$3.mappedGetter (eval at <anonymous> (app.js:825), <anonymous>:123:31)
at Watcher.get (eval at <anonymous> (app.js:658), <anonymous>:2936:27)
at Watcher.evaluate (eval at <anonymous> (app.js:658), <anonymous>:3044:21)
at Proxy.computedGetter (eval at <anonymous> (app.js:658), <anonymous>:3240:15)
at n (backend.js:1)
at n (backend.js:1)
at n (backend.js:1)
at n (backend.js:1)
at n (backend.js:1)
at n (backend.js:1)
Use Case
I have an app composed by two distinct areas, for simplicity lets say that we have the following routes:
And then I have two dynamic stores each one being registered/unregistered when either area1 or area2 components are created/destroyed. This is an example for area1:
// area1.vue
<template><div><router-link:to="{ name: 'area2' }">Go To Area 2</router-link></div></template><script>importstorefrom'./store1'exportdefault{beforeCreate(){this.$store.registerModule('area1Module',store)},beforeDestroy(){this.$store.unregisterModule('area1Module')}}</script>
So if I click the link defined in the template I get always the error mentioned at the beginning of the post but if I comment sync(store, router) everything works fine.
The text was updated successfully, but these errors were encountered:
Please follow the guidelines on how to report an issue. In particular, provide an example on www.jsfiddle.net (or a similar service) that reproduces the problem. If necessary, create a repository for us to clone with a minimal reproduction. repositories of actual projects will generally not be accepted. (Why is this necessary?)
Issue
When I activate the sync I get the following error:
Use Case
I have an app composed by two distinct areas, for simplicity lets say that we have the following routes:
I have a global store being registered that looks like this:
And then I have two dynamic stores each one being registered/unregistered when either area1 or area2 components are created/destroyed. This is an example for area1:
So if I click the link defined in the template I get always the error mentioned at the beginning of the post but if I comment
sync(store, router)
everything works fine.The text was updated successfully, but these errors were encountered: