vuex 报错 hook.flushStoreModules is not a function 偶发性

最近开发项目 用到vuex, 刷新页面后偶发性的报错  hook.flushStoreModules is not a function 但是不影响页面任何功能和vuex的使用

进行了各种尝试仍然不行,

当前开发环境

"vue": "^2.5.2"

"vuex": "^3.1.2"

vue-cli:2.9.6

解决中..........

原文地址:https://www.cnblogs.com/wangweizhang/p/12078411.html

时间: 2024-08-04 07:01:23

vuex 报错 hook.flushStoreModules is not a function 偶发性的相关文章

VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

今天碰到这个问题,网上找了好久, 解决方法如下 VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe 方法一 右键点击工程 -> 属性 -> C/C++ -> 常规 -> SDL检查 改为:否 (/sdl-) 编译 O了! 方法二 右键点击工程 -> 属性 -> C/C++ ->预处理器 添加宏定义 _SCL_SECUR

myeclipse 10 载入新的项目报错Cannot return from outside a function or method

myeclipse 10 载入新的项目报错Cannot return from outside a function or method 解决方法: 方法一: window -->preferences -->myeclipse -->validation -->javascript validator for Js    files 把Bulid 复选框的勾去掉. 方法二: 在所建立的project项目中右键单击,找到myeclipse-->Exclude Form Val

VUEX报错 [vuex] Do not mutate vuex store state outside mutation handlers

数组 错误的写法:let listData= state.playList; // 数组深拷贝,VUEX就报错 正确的写法:let listDate= state.playList.slice(); /*不能直接操作state里面的属性,但是可以创建一个副本*/ 对象 错误的写法:let listData= state.playList; // 对象深拷贝,VUEX就报错 正确的写法:let listDate= Object.assign({}, state.playList); /*不能直接操

使用vuex报错“__WEBPACK_IMPORTED_MODULE_1_vuex__.a.store is not a constructor”

import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); const store = new Vuex.store({ state:{ num:"我是vuex1" } }); export default store; 控制台显示报错 Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_1_vuex__.a.store is not a constructor (是因为尝试将不是

jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法

今天在用ajaxfileupload时firebug报了一个"jQuery.handleError is not a function"的错误.因为在以前使用jQuery.form一直都没有出现过这个问题,我对比以前的项目才发现,在这个项目中使用的jQuery是1.10.2的版本,而以前是使用的1.4.2.度娘一番之后,找到解决办法:jQuery.handleError is not a function 报错原因是: handlerError只在jquery-1.4.2之前的版本中存

报错TypeError: $(...).live is not a function解决方法

报错的原因是这个方法在jquery1.7以后就被废除了, 1.7以后的版本改用.on()方法 之前的用法: .live(events, function) 新方法: .on(eventType, selector, function) 例子: 之前: $('#myid').live('click', function{ alert(1) }) 之后: $('body').on('click', '#myid', function{ alert(1) }) 原文地址:https://www.cnb

taro编译报错this._create****** is not a function;[component] Property Observer Error @*****

报错信息如下,因为刚学taro有很多不懂,所以在错误中成长啦. js代码是这样写的 先简单说说报错原因吧,首先这是种函数式定义组件的方法,由于一个文件不能定义两个组件,但有时候我们需要组件内部的抽象组件,这时类函数式组件就是你想要答案. 但这样的写法也存在一些限制: 函数的命名必须以 render 开头,render 后的第一个字母需要大写 函数的参数不得传入 JSX 元素或 JSX 元素引用 函数不能递归地调用自身. 所以改成render开头的,比如这样的 就可以的 原文地址:https://

关于 vuex 报错 Do not mutate vuex store state outside mutation handlers.

10 :问题描述 在使用vuex 时,有时候 我们在mutation中定义好方法,在页面或组件提交时 有可能经常会遇到这个错误:---->>Do not mutate vuex store state outside mutation handlers. 9. 原因: The reason is that arrays are stored as references in Javascript and payload.items is likely to be changed outside

踩坑记录-nuxt引入vuex报错store/index.js should export a method that returns a Vuex instance.

错误 store/index.js代码如下: import Vue from 'vue'; import Vuex from 'vuex'; import city from './moudle/city' Vue.use(Vuex); //构造store const store = new Vuex.Store({ // 模块化 modules: { city: city } }); export default store; 解决办法 根据错误提示,到处一个方法,并在方法里把store导出.