Answers for "nuxt "Uncaught (in promise) TypeError: hook.flushStoreModules is not a function""

0

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
Posted by: Guest on March-16-2021

Code answers related to "nuxt "Uncaught (in promise) TypeError: hook.flushStoreModules is not a function""

Browse Popular Code Answers by Language