
【Bug】
Vscode
王同学要努力
24届毕业生 计科专业
无论身处何方,陷于何地,都要向下扎根,向上开花,不负生活,不负自己!
展开
-
【React 报错】—Remove untracked files, stash or commit any changes, and try again.
原因是因为工程默认的git 导致的(git配置文件)原创 2024-02-28 16:59:22 · 529 阅读 · 0 评论 -
Uncaught TypeError: Cannot use ‘in‘ operator to search for ‘path‘ in undefined
【代码】Uncaught TypeError: Cannot use 'in' operator to search for 'path' in undefined。原创 2023-10-23 14:16:02 · 1379 阅读 · 0 评论 -
warning: LF will be replaced by CRLF in package.json. The file will have its original line endings i
可以通过 git config [–global] core.autocrlf true | false | input 命令来设置Git 对待换行符的方式(如果只在Windows环境开发或只在linux环境开发,不存在跨平台问题,设置为false 即可)。当core autocrlf为true时,有一个需要慎重的地方:当你上传一个二进制文件,Git可能会将二进制文件误以为是文本文件,从而也会修改你的二进制文件,从而产生隐患。–global 选项表示全局设置,如果只是设置当前工作目录,可以不用加。转载 2023-09-11 18:53:52 · 948 阅读 · 0 评论 -
Parsing error: The keyword ‘const‘ is reserved
【代码】Parsing error: The keyword 'const' is reserved。原创 2023-09-09 16:03:34 · 1481 阅读 · 0 评论 -
【Error】npm i -g n 报错:notsup Unsupported platform for n@9.1.0: wanted {“os“:“!win32“,“ Actual Arch:…
报错如下:解决办法:原创 2023-09-04 18:13:06 · 1503 阅读 · 0 评论 -
Cannot read properties of undefined (reading ‘install‘) TypeError: Cannot read properties of……
而 4 以后的版本适用于 vue3.0 版本,用在 vue2.0+ 会报错。命令,造成直接下载最新版。原创 2023-07-25 18:59:03 · 572 阅读 · 0 评论 -
【Vue Error】 error Component name “product“ should always be multi-word vue/multi-word-compone……
查阅资料发现,这其实是语法检查的时候把不规范的代码(即命名不规范)当成了错误。翻译过来可知是组件名出了问题,意思就是组件名应该使多个单词拼接横线组成的。,作用是关闭语法检查。原创 2023-07-25 16:57:43 · 651 阅读 · 0 评论 -
【Vue Error】Virtual script not found, may missing <script lang=“ts“> “allowJs“: true / jsconfig.json
翻译过来意思就是:有可能在配置中没有添加允许JS的配置(原创 2023-05-31 16:26:38 · 2499 阅读 · 3 评论 -
【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……
百度翻译一下:如果这是一个本地自定义元素,请务必通过编译器从组件分辨率中排除它。原创 2022-12-23 18:45:53 · 13733 阅读 · 2 评论 -
Ant Design Vue处理日期相关的问题
处理日期相关的问题都是使用。原创 2022-12-11 21:37:37 · 602 阅读 · 3 评论 -
【Bug】Uncaught (in promise) AxiosError: Request failed with status code 404
报错如下:检查调用地址和接口地址是否一致,我的是接口写错了😭😭😭😭😭原创 2022-11-30 11:18:29 · 7365 阅读 · 0 评论 -
【Error】解决 Vue2.x 与最新 Ant Design vue 版本不符的问题
项目一直报错,如果我们 要使用。来开发项目时,就必须安装指定。如果您已经安装了,请先通过。的版本号, 否则会报错。您可以打开项目根目录。原创 2022-11-26 11:24:22 · 1218 阅读 · 2 评论 -
warning: LF will be replaced by CRLF in xxxxxx
系统的换行符,CRLF是window 系统的换行符。这就给跨平台的协作的项目带来了问题,保存文件到底是使用哪个标准呢?git为了解决这个问题,提供了一个”换行符自动转换“的功能,并且这个功能是默认处于”自动模式“即开启状态的。这个换行符自动转换会把自动把你代码里 与你当前操作系统不相同的换行的方式 转换成当前系统的换行方式(即LF和CRLF 之间的转换),这样一来,当你提交代码的时候,即使你没有修改过某个文件,也被git认为你修改过了,从而提示。(全局有效,不设置推荐全局)实都是换行符,但是不同的是,转载 2022-11-26 08:34:27 · 570 阅读 · 2 评论 -
解决 OpenSSL SSL_read: Connection was reset, errno 10054的问题
OpenSSL SSL_read: Connection was reset, errno 10054 翻译过来的意思就是。通俗点说就是服务器的SSL证书没有经过第三方机构的签署。但也有可能是网络不稳定,导致连接超时。原创 2022-10-31 17:38:28 · 1297 阅读 · 0 评论 -
【Error】fatal: unable to access ‘https://github.com/PanJiaChen/vue-element-admin/‘: OpenSSL SSL_read:
Clone项目时一直报错:解决办法:执行以下命令:原创 2022-10-30 20:58:39 · 518 阅读 · 1 评论 -
【IDEA】IDEA 快速实现override方法的快捷键
快捷键:Ctrl+O快速弹出重写方法原创 2022-10-25 15:31:40 · 1493 阅读 · 0 评论 -
解决IDEA 【alt + insert快捷键】不能使用的原因,亲测,可用!!!!
缺少插件:File ——Settings——Plugins——Installed——》搜索groovy——》勾选紫色的框中两个插件,我检查了一下我的,发现没有问题,我的都是勾选的,所以,这一步,跳过。没有勾选的小伙伴可以按照上面的步骤勾选一下。原创 2022-10-25 15:08:34 · 4665 阅读 · 3 评论 -
[Vue warn]: Method “components“ has type “object“ in the component definition. Did you reference the
报错如下:原创 2022-10-23 14:53:16 · 2749 阅读 · 4 评论 -
解决Idea控制台中文乱码的问题
【代码】解决Idea控制台中文乱码的问题。原创 2022-10-13 16:00:18 · 472 阅读 · 0 评论 -
【Error】Vue.js is detected on this page. Open DevTools and look for the Vue panel.
已成功解决原创 2022-10-12 18:19:56 · 1411 阅读 · 0 评论 -
Windows查看所有的端口
【代码】Windows查看所有的端口。原创 2022-09-20 22:01:59 · 7186 阅读 · 3 评论 -
【Windows】查看Git本地安装位置
1️⃣win+R,输入cmd,回车。原创 2022-09-08 11:30:02 · 2721 阅读 · 1 评论 -
【Error】This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel
【Error】This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel。原创 2022-09-08 11:27:31 · 934 阅读 · 2 评论 -
解决VScode 使用 ! +Tab键无法无法生成HTML模板的问题
解决VScode 使用 ! +Tab键无法无法生成HTML模板的问题原创 2022-07-16 17:46:05 · 1558 阅读 · 6 评论 -
error This module isn‘t specified in a package.json file.
error This module isn’t specified in a package.json file.报错如下:解决办法:首先先删除node_modules安装包,执行以下命令(没有 rimraf包的先安装 rimraf包 执行以下命令 npm install rimraf -g有的请忽略)rimraf node_modules其次,打开package.json文件然后再执行yarn add sass -D成功解决👏👏👏👏👏👏👏...原创 2022-03-11 13:43:04 · 5786 阅读 · 2 评论 -
fatal: unable to access ‘https://XXXXX‘: : OpenSSL SSL_read: Connection was reset, errno 10054……
fatal: unable to access ‘https://XXXXX’: : OpenSSL SSL_read: Connection was reset, errno 10054……解决办法:将命令中的 https改为 git ,即可成功解决该问题,例子如下:原创 2021-12-12 13:36:25 · 3310 阅读 · 19 评论 -
解决移动端报错:Unable to preventDefault inside passive event listener due to target being treated as……
解决移动端报错:Unable to preventDefault inside passive event listener due to target being treated as……报错如下:解决办法://在容器css样式添加如下代码 touch-action: pan-y; //或者设置全局css* { touch-action: pan-y; }...原创 2021-12-06 18:02:02 · 1769 阅读 · 6 评论 -
(node)Warning: Accessing non-existent property ‘xxx‘ of module exports inside circular depen
(node)Warning: Accessing non-existent property ‘lineno’ of module exports inside circular depen报错如下:(node:18216) Warning: Accessing non-existent property 'column' of module exports inside circular depen(node:18216) Warning: Accessing non-existent proper原创 2021-12-05 11:49:11 · 14443 阅读 · 18 评论 -
Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css
Vue中引入swiper插件报错:To install it, you can run: npm install --save swiper/css/swiper.css今天在写项目的时候用到了Swiper插件,执行了npm install swiper vue-awesome-swiper --save,并且也引入了,按照他的提示执行最后还是报错将main.js 中 import 'swiper/css/swiper.css' 应该替换为 import 'swiper/swiper-bundle.原创 2021-12-04 18:00:04 · 7114 阅读 · 3 评论 -
Error:To install them, you can run: npm install --save vue-style-loader css-loader……
Error:npm install --save vue-style-loader css-loader……报错如下:缺少相关依赖而导致的 解决办法:如果是 常规 的,执行 npm install stylus-loader css-loader style-loader–save-dev 安装依赖就行。如果是 less 的,执行 npm install less less-loader --save-dev 安装依赖就行。如果是 sass 的,执行 npm install sass s原创 2021-12-04 17:34:16 · 3001 阅读 · 0 评论 -
Vue:You may use special comments to disable some warnings.
Vue:You may use special comments to disable some warnings.报错如下:解决办法:找到build下webpack.base.conf.js删除module下rules中的 …(config.dev.useEslint ? [createLintingRule()] : [])原创 2021-12-04 12:08:14 · 680 阅读 · 1 评论 -
Error: Plugin/Preset files are not allowed to export objects, only functions……
Error: Plugin/Preset files are not allowed to export objects, only functions……报错如下:解决办法:找到babel.config.js文件,修改下面的代码将上面的代码修改为原创 2021-11-25 18:42:44 · 698 阅读 · 5 评论 -
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
DevTools failed to load source map: Could not load content for……System error: net::ERR_FILE_NOT_FOUN浏览器控制台有警告,虽然代码能正常运行,但是我有强迫症,看见警告就不爽解决办法找到上面红色框所在的文件夹,将文件夹里面的注释删掉,这种注释一般在文件的末尾,删除即可解决此问题...原创 2021-11-23 17:04:30 · 860 阅读 · 2 评论 -
Vue err:This dependency was not found
Vue err:This dependency was not found报错如下:解决办法:上面说了执行 npm install --save Vuex,我执行了,但还是报错!这时候,仔细检查自己的代码,看看是不是大小写,多了空格的问题,我已解决,自己没注意大小写的问题!!!...原创 2021-11-22 19:06:49 · 292 阅读 · 0 评论 -
[Vue warn]: Unknown custom element: <Top> - did you register the component correctly?
[Vue warn]: Unknown custom element: - did you register the component correctly?错误如下:出现错误的原因有以下几种:1、注册组件关键字components写错导致无法使用(我就是 hhhh)2、import语句导入组件时from后面的路径写错3、组件名错误,与注册的组件名不一致...原创 2021-11-19 16:39:25 · 756 阅读 · 0 评论 -
【CSS】解决图片和盒子底部产生的缝隙问题
【CSS】解决图片和盒子底部产生的缝隙问题好久没写CSS了,一般都是用的框架(CVCV),项目中遇到的一些问题记录一下问题如下:解决办法:设置以下属性:vertical-align: top/bottom/middle;原创 2021-10-24 16:10:06 · 1202 阅读 · 1 评论 -
axios.post请求出错:Request header field content-type is not allowed by Access-Control-Allow-Headers in……
axios.post请求出错:Request header field content-type is not allowed by Access-Control-Allow-Headers in……报错如下报错原因:接口不正确Access-Control-Allow-Headers不允许请求报头字段内容类型。解决办法:在服务器端设置一下接口,使用post方法是不需要设置headers里面的Content-Type, 使用了post,Content-Type是什么就根据你传入参数的格式如果传入原创 2021-10-20 15:02:25 · 971 阅读 · 1 评论 -
【Webpack】TypeError: Cannot read property ‘tap‘ of undefined at HtmlWebpackPlugin.
【Webpack】TypeError: Cannot read property ‘tap’ of undefined at HtmlWebpackPlugin.报错如下:解决办法:下载安装指定版本的 html-webpack-plugin,使它和webpack版本版本相匹配npm install --save-dev html-webpack-plugin@4.3.0...原创 2021-10-19 12:35:50 · 552 阅读 · 0 评论 -
Webpack打包出错:Error: Cannot find module ‘webpack/lib/node/NodeTemplatePlugin‘ Require stack:
Webpack打包出错:Error: Cannot find module ‘webpack/lib/node/NodeTemplatePlugin’ Require stack:报错如下:解决办法:执行以下命令npm link webpack --save-dev重新运行,即可解决此问题原创 2021-10-18 19:35:34 · 916 阅读 · 0 评论 -
解决Uncaught (in promise) reason的问题
解决Uncaught (in promise) reason的问题报错如下错误代码 new Promise((resolve, reject) => { //resolve(123); reject('reason'); }) .then((data) => { console.log('success', data);原创 2021-10-17 14:56:42 · 513 阅读 · 5 评论