错误笔记
兔头迟早要秃头
这个作者很懒,什么都没留下…
展开
-
vue使用echarts报错:Error: Initialize failed: invalid dom.
解决:因为数据返回较慢,获取接口数据写在mounted中,但是当切换页面时,dom被销毁,但是接口数据仍在等待,但是当切换页面后,接口数据返回,要渲染图表时,此时dom找不到,这个时候加一个判断就行了。bug出现:因为后端数据返回较慢,当我在数据未返回之前切换了当前页面,浏览器就会报错:未初始化dom:Error: Initialize failed: invalid dom.功能背景:使用后端返回数据渲染图表,我是在获取数据之后才渲染的图表。原创 2023-02-23 16:25:19 · 3413 阅读 · 2 评论 -
记录:接口对接-json格式参数无法传输双引号
记录一下使用富文本作为内容参数传递时,有时候会有双引号的存在,比如复制网页内容时,会把样式也传递过来,参数类似于:“原创 2022-12-07 17:51:39 · 233 阅读 · 0 评论 -
小程序错误--Super expression must either be null or a function at _inherits
小程序报错:Super expression must either be null or a function at _inherits在做小程序的时候,使用Taro作为框架,在使用form的时候,使用了官网给的例子:发现一直报这个错,为什么官网的例子也错上网搜说是大写什么的没写好后面发现是继承的Component的问题,应该继承React.Component修改之后的import React from 'react'import { AtForm, AtInput, AtButton }原创 2022-03-15 10:47:54 · 961 阅读 · 0 评论 -
JAVA:解决idea中spring项目pom文件的 spring-boot-maven-plugin报红问题并打包
spring-boot-maven-plugin报红问题:打包问题出现:Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:2.0.参考:https://blog.csdn.net/weixin_46146718/article/details/114023308修改plugin<plugin> <groupId>org.apache.maven.plugins</gro原创 2021-09-12 23:52:07 · 1224 阅读 · 0 评论 -
运行vue项目时 浏览器空白报错: Error: Module build failed
运行vue项目时浏览器空白报错:Error: Module build failed (from ./node_modules/_svg-sprite-loader@4.1.3@svg-sprite-loader/lib/loader.js1、 rm node_modules2、npm cache clear --force3、npm install npm -g4、npm install失败改用 cnpm install5、最后npm runstart然后莫名也成功了。。。。npm原创 2021-08-20 11:11:40 · 1379 阅读 · 0 评论 -
npm版本问题
解决链接:https://stackoverflow.com/questions/68260784/npm-warn-old-lockfile-the-package-lock-json-file-was-created-with-an-old-version原创 2021-08-20 09:04:03 · 1674 阅读 · 0 评论 -
vscode里面运行vue项目遇到的问题
1、下载依赖时: npm install可能出现权限问题首先设置vscode以管理员身份打开也可以直接设置属性这个时候还报错npm ERR! code ERESOLVEnpm ERR!npm ERR! Found: @babel/core@7.0.0npm ERR! node_modules/@babel/corenpm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --forc原创 2021-08-19 22:13:46 · 1227 阅读 · 0 评论 -
centos安装mysql时遇到的问题
1、查看可以安装哪些项yum list | grep mysql1.1错误:The program ‘yum’ is currently not installed. You can install it by typing:解决:apt install yum1.1.1 错误:Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/pool/main/libx/libxml2/python-libxml2_2.9.3+dfsg1-1ubu原创 2021-08-18 11:01:18 · 401 阅读 · 0 评论 -
navicat连接数据库:Your password has expired. To log in you must change it using a client that supports ex
cmd命令修改密码:mysqladmin –u root -p password原创 2021-08-18 10:20:03 · 389 阅读 · 0 评论 -
maven以后可能会遇到的资源导出失败的问题
build中配置resource <resource> <directory>src/main/resources</directory> <excludes> <exclude>**/*.properties</exclude> <exclude>**/*.xml</exclude> </excludes> <filte.原创 2021-08-06 17:00:36 · 59 阅读 · 0 评论 -
新建maven项目时,Run中报警告:No archetype found in remote catalog. Defaulting to internal catalo在远程目录中没有找到原型。
解决方法:在创建项目时,设置属性archetypeCatalog=internal原创 2021-08-05 20:04:19 · 278 阅读 · 0 评论 -
IDEA:maven项目出现编码问题
pom.xml加上 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>原创 2021-08-05 20:03:08 · 115 阅读 · 0 评论 -
错误笔记:IDEA启动tomcat时,XXX下的target,没有出现XXX文件夹
遇到的问题: 例如我的启动tomcat时servlet-01下的target,没有出现servlet-01文件夹解决方法:在tomcat配置中,找到Before launch,然后把里面的两个都删掉,然后点加号,选择Run Maven Goal ,command line命令为:clean package。注意::在配置Tomcat时需要配置Context Path:访问前缀(比如 /app,那就访问 localhost:8080/app) 默认为文件名 、需创建...原创 2021-08-05 20:01:09 · 1354 阅读 · 0 评论 -
node.js安装: cnpm找不到
安装参考文章:https://blog.csdn.net/xiaoyuer_ying/article/details/82148038出现cnpm找不到:在环境变量中加入添加的 node_cache 路径系统变量Path:例如:D:\soft\nodejs\node_cache原创 2021-07-26 10:27:08 · 1876 阅读 · 0 评论 -
javaweb-jsp文件中出现Unknown tag
前面加上<%@ taglib prefix=“c” uri=“http://java.sun.com/jsp/jstl/core” %>原创 2021-05-16 11:35:03 · 1520 阅读 · 0 评论