
控制台报错
南朝听月
A ship in harbor is safe, but that is not what ships are built for.
展开
-
The operation was rejected by your operating system. code CERT_HAS_EXPIRED报错解决
各种报错,试了清缓存,使用管理员权限打开命令行工具,更新npm,都不好使。原创 2024-08-03 16:24:20 · 263 阅读 · 0 评论 -
tsc : 无法加载文件 C:\Users\Administrat\AppData\Roaming\npm\tsc.ps 1,因为在此系统上禁止运行脚本
时,是因为我们的系统执行策略(Execution Policy)禁止在系统上运行PowerShell脚本。,则说明系统禁止执行任何PowerShell脚本。后缀的WIndows PowerShell。2、查看系统的执行策略,如果输出结果是。3、使用以下命令来将执行策略设置为。,允许您在系统上执行本地脚本。原创 2024-03-04 16:15:37 · 512 阅读 · 0 评论 -
Could not resolve dependency: npm ERR peer vue“3.0.2“ from vuex 4.0.2,vuex安装报错
报错原因: 安装的版本过高导致的解决办法:1、可以npm view vuex versions --json查版本,找适合的版本(不要最新的)2、npm install vuex@3.6.2 --save 下载具体的某一版本原创 2022-05-18 23:26:52 · 3913 阅读 · 1 评论 -
npm安装依赖报错: cb never called, cb never called
npm安装依赖报错: cb() never called!, cb() never called!原创 2022-04-28 09:30:37 · 881 阅读 · 0 评论 -
vuex报错,Uncaught TypeError: Object(...) is not a function at resetStoreState (vuex.esm-browser.js
vuex报错原创 2022-04-18 18:36:31 · 618 阅读 · 0 评论 -
控制台打断点的快捷方式
控制台打断点的快捷方式原创 2022-04-15 18:41:20 · 643 阅读 · 0 评论 -
fatal: could not create work tree dir ‘xxx’: Permission denied解决办法
fatal: could not create work tree dir ‘xxx’: Permission denied解决办法原创 2022-04-13 20:49:35 · 21953 阅读 · 13 评论 -
[vue-router] Route with name ‘路由名称‘ does not exist,报错[vue-router] Route with name ‘ ‘ does not exist
[vue-router] Route with name '路由名称' does not exist,报错[vue-router] Route with name ' ' does not exist原创 2022-03-01 12:46:04 · 17514 阅读 · 0 评论 -
error Unexpected mutation of “formData“ prop vue/no-mutating-props,更改父组件流向子组件的值
error Unexpected mutation of "formData" prop vue/no-mutating-props,更改父组件流向子组件的值原创 2022-01-21 20:42:35 · 5188 阅读 · 1 评论 -
git报错: Another git process seems to be running in this repository
git报错: Another git process seems to be running in this repository原创 2022-01-18 23:10:53 · 1441 阅读 · 0 评论 -
Module not found: Error: Can‘t resolve ‘******‘,安装指定版本,卸载包
Module not found: Error: Can't resolve '******',安装指定版本,卸载包原创 2022-01-13 18:14:15 · 7627 阅读 · 0 评论 -
Uncaught (in promise) RangeError: Maximum call stack size exceeded
Uncaught (in promise) RangeError: Maximum call stack size exceeded原创 2022-01-12 17:50:20 · 8626 阅读 · 0 评论 -
98% after emitting CopyPlugin
98% after emitting CopyPlugin原创 2022-01-08 23:10:58 · 1779 阅读 · 0 评论 -
error Newline required at end of file but not found eol-last
error Newline required at end of file but not found eol-last原创 2021-12-14 22:03:32 · 431 阅读 · 0 评论 -
SyntaxError: Identifier ‘xxx‘ has already been declared
SyntaxError: Identifier 'xxx' has already been declared原创 2021-12-08 16:02:03 · 41020 阅读 · 0 评论 -
%E2%80%8B,url 多了一个空格,出现特殊的字符%E2%80%8B
%E2%80%8B,url 多了一个空格,出现特殊的字符%E2%80%8B原创 2021-12-02 22:34:10 · 2154 阅读 · 0 评论 -
Uncaught TypeError: Cannot read properties of null (reading ‘B‘) at HTMLLabelElement.eval (eval
Uncaught TypeError: Cannot read properties of null (reading 'B') at HTMLLabelElement.eval (eval at SZ (getscript?v=2.0&ak=3RCAu7SsZ0ThFxGGbPaHv8YGM3TAEnGZ&services=&t=20210918100012:1), <anonymous>:1:1093)清除百度地图覆盖物如下会报错labeL.addEv原创 2021-10-14 18:12:20 · 2156 阅读 · 0 评论 -
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
报错解决链接(靠谱)npm WARN deprecated har-validator@5.1.5: this library is no longer supported原创 2021-10-08 14:12:11 · 38507 阅读 · 0 评论 -
You are using a whole package of antd-mobile, please use https://www.npmjs.com/package/ba
You are using a whole package of antd-mobile, please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.1、此时需要引入babel-plugin-import按需加载npm install babel-plugin-import --save-dev2、在根目录下新建文件babelrc{ "plugins": [ ["impo原创 2021-09-30 14:26:42 · 1092 阅读 · 0 评论 -
[Intervention] Unable to preventDefault inside passive event listener due to target beingtreated
[ Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>这个报错是有浏览器自己报出的,可以看出是和默认事件有关系这篇文章说的比较详细可以看看博主解决办法:* { touch-action: pan-y; box-sizing: border-box;}...原创 2021-09-30 14:12:09 · 420 阅读 · 0 评论 -
index.js:1 Warning: A string ref, “slider“, has been found within a strict mode tree. String refs ar
控制台报错index.js:1 Warning: A string ref, "slider", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: http.原创 2021-09-30 14:06:00 · 760 阅读 · 0 评论 -
Uncaught SyntaxError: Cannot use import statement outside a module
1、错误描述Uncaught SyntaxError: Cannot use import statement outside a module2、错误原因 定义了一个JavaScript文件,声明几个变量,利用模块化导出变量let name = ‘张华’let age = 23let sex = ‘女’export {name, age, sex}接着,在页面文件中直接导入import;打开浏览器访问页面,控制台出现报错 3、解决办法 需要原创 2021-09-14 15:47:11 · 927 阅读 · 0 评论 -
Uncaught SyntaxError: Cannot use import statement outside a module
1、错误描述Uncaught SyntaxError: Cannot use import statement outside a module2、错误原因 定义了一个JavaScript文件,声明几个变量,利用模块化导出变量let name = '张华'let age = 23let sex = '女' export {name, age, sex} 接着,在页面文件中直接导入import;打开浏览器访问页面,控制台出现报错<!DOCTYPE html>&l原创 2021-09-10 15:06:06 · 311 阅读 · 0 评论 -
TypeError: Cannot read property ‘length‘ of null
参考如下代码讲解:在请求回调里将请求返回的值进行一个赋值操作,如果我们的后台不规范,当数据为空的时候,给前端返回了一个null,而不是一个空数组。而且此时可以看到我们在代码中其实是用到了这个值进行了一个判断渲染,null上面怎么会有length属性呢。所以不妨看一看后台接口返回的是个什么鬼。<sn-container left="74.3" top="4.25" :show="Boolean(annunciator.data.length)"> <sn-figure原创 2021-08-14 14:39:07 · 2426 阅读 · 0 评论 -
vue控制台报错Duplicate keys detected: ‘xxxx‘. This may cause an update error.解决方案
报错:Duplicate keys detected: ‘苏EKM699’. This may cause an update error代码截图:原因:v-for绑定的key值没有区分度。原创 2021-07-19 10:18:18 · 301 阅读 · 0 评论 -
Error in v-on handler: “Invalid Object: LngLat(NaN, NaN)“
报错信息:Error in v-on handler: “Invalid Object: LngLat(NaN, NaN)”原因:有的撒点经纬度,没有值,导致标记不上点。原创 2021-07-15 16:59:34 · 9690 阅读 · 0 评论 -
Uncaught Invalid Object: Pixel(NaN, NaN)
报错: Uncaught Invalid Object: Pixel(NaN, NaN)let lnglats = this.checked.video.locationGPS; console.log("点击了视频撒点", lnglats); let _this = this; // 创建一个 Icon let startIcon = new AMap.Icon({ // 图标的取图地址 image:原创 2021-07-15 16:41:43 · 5760 阅读 · 0 评论 -
Uncaught (in promise) TypeError: Object(...) is not a function
报错原因:es6的导入导出语法使用错误。export和import的使用方式。原创 2021-03-20 15:38:09 · 1678 阅读 · 0 评论 -
The data property “seniorRating“ is already declared as a prop. Use prop default value instead
报错:The data property “seniorRating” is already declared as a prop. Use prop default value instead原因:在父组件中定义的自定义属性往子组件中传值的时候,子组件中的data中也命名了一个相同的。解决办法:将子组件中data中的变量去掉即可...原创 2021-03-17 12:13:09 · 460 阅读 · 0 评论 -
Uncaught (in promise) TypeError: Object(...) is not a function
原因是:导入的时候忘记了带大括号import {getuserInfo} from '@/api/login'原创 2021-03-15 14:10:34 · 1189 阅读 · 0 评论 -
Uncaught SyntaxError: Invalid shorthand property initialize
控制台报错:Uncaught SyntaxError: Invalid shorthand property initialize翻译报错:未捕获的SyntaxError:初始化的速记属性无效Invalid:无效的shorthand:简写initialize:初始化原因:这里的等号应该改为 : 即改为 size:“10”...原创 2021-03-11 10:01:46 · 889 阅读 · 0 评论