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

Vuex nested modules createNamespaceHelpers Issue #35

JaeYeopHan opened this issue Nov 20, 2018 · 0 comments


None yet
1 participant
Copy link

commented Nov 20, 2018


2018-11-20 10 52 59

parent의 NAMESPACE를 child에서 가져와서 쓰려고 했더니 이런 이슈가 발생


export const NAMESPACE = 'common'
export default {
  namespaced: true,
  modules: {


import { createNamespacedHelpers } from 'vuex'

export const NAMESPACE = 'header';

const { mapState } = createNamespacedHelpers(`common/${NAMESPACE}`)

export { mapState }

export default {
  namespaced: true,
  state: { ... },

저기서 common namespace를 상위 모듈인 common/index.js에서 가져오려고 하면 에러가 발생함.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.