Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'state') at Proxy.mappedState (vuex.esm-bundler.js:1162:31) #2226

Open
Krrunal opened this issue Jun 29, 2023 · 1 comment

Comments

@Krrunal
Copy link

Krrunal commented Jun 29, 2023

i am using vuex 4.1.0 with vue 3. I clone it in my node_modules using this

git clone https://github.com/vuejs/vuex.git node_modules/vuex
cd node_modules/vuex
yarn
yarn build

now when i run yarn run dev this error is occur

vuex.esm-bundler.js:1162 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'state')
at Proxy.mappedState (vuex.esm-bundler.js:1162:31)
at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
at get value [as value] (reactivity.esm-bundler.js:1147:33)
at Object.get [as routes] (chunk-3DFB6IXN.js:2745:22)
at Object.get (chunk-3DFB6IXN.js:7249:23)
at getter (chunk-3DFB6IXN.js:2854:90)
at callWithErrorHandling (chunk-3DFB6IXN.js:186:32)
at getter (chunk-3DFB6IXN.js:1572:22)
at ReactiveEffect.getter [as fn] (chunk-3DFB6IXN.js:1595:29)
at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)

how i solve this issue
@ffleandro
Copy link

I'm seeing this while migrating from Vue2 to Vue3, and Vuex 3 to 4.
Anyone has any hints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants