📌  相关文章
📜  nuxt“未捕获(承诺中)TypeError:hook.flushStoreModules 不是函数” - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:41.176000             🧑  作者: Mango

代码示例1
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