Join GitHub today
[vuex] state field "foo" was overridden by a module with the same name at "foo" #1652
Steps to reproduce
Create a minimal store using the gist.
Result: We get Typescript error: Property 'foo' does not exist on type 'RootState'.
What is expected?
A Typescript error is expected
What is actually happening?
We get the Typescript error and that is the problem
How would I be able to access store.state.foo without adding foo to RootState? And if I do I get this warning in 3.1.2: