Uncaught (in promise) TypeError: hook.flushStoreModules is not a function code example
Example: nuxt "Uncaught (in promise) TypeError: hook.flushStoreModules is not a function"
Error happens because of the 'constructor' property in my vuex state.
export const state = () => ({ constructor: '/constructor' })
Steps to reproduce:
Create blank Nuxt project
Create vuex store with 'constructor' property in it.
Run project and make sure there's a error
Rename 'constructor' to 'constructor2' and see that there is no error