Skip to content

module namespace not found in mapState() when using store.registerModule() #812

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

Closed
sergey-koretsky opened this issue Jun 1, 2017 · 2 comments
Labels
need repro Reproduction code is required

Comments

@sergey-koretsky
Copy link

Version

2.3.0

Reproduction link

https://jsfiddle.net/chrisvfritz/50wL7mdz/

Steps to reproduce

add new submodule with store.registerModule( MODULE_PREFIX, {...})
then try:

computed: {
	...mapState( MODULE_PREFIX, [
		'someObject',
	]),
}

What is expected?

normal behavior

What is actually happening?

an error with the message:
[vuex] module namespace not found in mapState()

@ktsn
Copy link
Member

ktsn commented Jun 1, 2017

Please provide a real reproduction.

@ktsn ktsn added the need repro Reproduction code is required label Jun 1, 2017
@ktsn
Copy link
Member

ktsn commented Jun 7, 2017

Closing for inactivity. If you can follow up information or provide a reproduction, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need repro Reproduction code is required
Projects
None yet
Development

No branches or pull requests

2 participants