
pits
遇到的问题和解决方案汇总
snowDreamzzz
穿新衣吧,换新发型呀,轻松一下~~~
展开
-
TypeError: Cannot read properties of null (reading ‘isCE‘)
控制台报错 TypeError: Cannot read properties of null (reading ‘isCE’)resolve.dedupe 用于防止项目中的依赖包被重复打包。修改vite.config.js。原创 2024-07-13 15:47:26 · 853 阅读 · 0 评论 -
钉钉选取组织下成员报错 钉钉选人组件报错 原因应该是需要接口鉴权
钉钉选取组织下成员报错 钉钉选人组件报错 原因应该是需要接口鉴权。原创 2024-07-13 15:15:23 · 307 阅读 · 0 评论 -
git commit时报错,LF will be replaced by CRLF the next time Git touches it
本地执行git commit时,会出现很多文件出现diff信息,实际文件并没有修改,通过 git diff,出现提示是 warning: in the working copy of ‘vite.config.ts’, LF will be replaced by CRLF the next time Git touches it。是什么原因导致的?怎么解决?原创 2024-07-13 15:10:27 · 4938 阅读 · 0 评论 -
[Violation] Added non-passive event listener to a scroll-blocking ‘touchstart‘ event. Consider marki
这个警告通常出现在浏览器的开发者工具控制台中,是由于添加了非被动(non-passive)的事件监听器导致的。问题出在eruda这个工具 在tuchstart事件中使用了非被动事件监听器。什么是非被动(non-passive)事件监听器和被动事件监听器?非被动(non-passive)事件监听器。原创 2024-06-06 17:20:03 · 1374 阅读 · 0 评论 -
Failed to execute ‘postMessage‘ on ‘DOMWindow‘: The target origin provided (‘http://localhost:50
报错: Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://localhost:5001’) does not match the recipient window’s origin (‘http://localhost:5000’).原创 2024-05-05 13:00:27 · 2989 阅读 · 1 评论 -
钉钉h5获取地理位置服务gps.报错{“errorCode“:7,“errorMessage“:“No permission info for action: device.geolocation.g
刚开始试了很多次没效果,后来突然发现。原因还是jsapi鉴权不对。钉钉获取地理位置的api。原创 2024-04-16 10:56:40 · 2086 阅读 · 1 评论 -
钉钉h5页面空白,控制台报错: unexpected token .
钉钉h5页面空白,控制台报错: unexpected token .原创 2024-04-15 17:28:09 · 683 阅读 · 0 评论 -
Type ‘ComputedRef<xxx>‘ is not assignable to type ‘xxxx‘.
定位原因: 使用时类型是 ComputedRef 而不是需要的 ModdleExtensions。computed 数据使用 .value 来获取。原创 2024-04-08 11:03:53 · 343 阅读 · 0 评论 -
钉钉服务端API报错 43008 参数需要multipart类型
钉钉服务端API报错 43008 参数需要multipart类型。原创 2024-03-29 21:06:26 · 1059 阅读 · 1 评论 -
钉钉服务端API报错 错误描述: robot 不存在;解决方案:请确认 robotCode 是否正确
最后通过查看文档发现 机器人发布之后,需要发布应用,只有发布了应用,在钉钉客户端添加机器人时,企业机器人列表才会出现自己创建的机器人。原创 2024-03-29 08:36:45 · 1386 阅读 · 0 评论 -
钉钉h5应用 globalthis is not defined vite client
钉钉h5应用 globalthis is not defined vite client。原创 2024-03-05 16:24:44 · 627 阅读 · 0 评论 -
钉钉h5应用 环境报错Error: Do not support the current environment:notInDingTalk
钉钉h5应用 环境报错。原创 2024-03-04 11:39:28 · 1316 阅读 · 0 评论 -
钉钉小程序无法关联应用
钉钉小程序无法关联应用。原创 2024-02-20 11:41:57 · 1176 阅读 · 0 评论 -
钉钉小程序 没有调用该接口的权限
钉钉小程序 没有调用该接口的权限。原创 2024-02-20 11:28:24 · 1666 阅读 · 0 评论 -
钉钉小程序 访问ip不在白名单之中
钉钉小程序 访问ip不在白名单之中。原创 2024-02-20 11:20:31 · 2432 阅读 · 2 评论 -
vue.runtime.esm.js:620 [Vue warn]: Error in created hook: “TypeError: this.initDeptTree(...) is not
方法1:每个语句后面加分号,但是format会自动删掉非必要分号,保留最后一条语句的分号。当前方法initDeptTree和下一个语句拼接到了一起。控制台报错 死活说,不认识这个方法。方法2:修改后面的写法。原创 2024-02-20 11:12:33 · 1467 阅读 · 0 评论 -
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
报错: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443。原创 2024-01-11 09:37:21 · 1380 阅读 · 0 评论 -
npm ERR! FetchError: request to localhost 4873 zrender
npm ERR!原创 2024-01-09 16:10:21 · 1353 阅读 · 0 评论 -
启动springboot时报错 APPLICATION FAILED TO START 包冲突
启动springboot时报错 APPLICATION FAILED TO START 包冲突。原创 2023-12-29 15:40:33 · 1836 阅读 · 0 评论 -
springmvc中controller路由出现404
java]springmvc中controller路由出现404。原创 2023-12-27 11:42:46 · 978 阅读 · 0 评论 -
类实现接口无法识别接口文件
类实现接口无法识别接口文件。原创 2023-12-22 10:27:58 · 435 阅读 · 0 评论 -
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - Failed to create parent directories for
查看该目录,系统中没有该文件,也没有该目录。idea导入工程后,启动工程,报错。看日志意思是:创建某个日志文件报错。原创 2023-12-11 15:33:04 · 2459 阅读 · 0 评论 -
idea导入工程后,安装好maven依赖后,报错 junit不存在
idea导入工程后,安装好maven依赖后,报错 junit不存在。原创 2023-12-11 15:28:12 · 544 阅读 · 0 评论 -
[vue]vue.config.js: “plugins“ is not allowed
vue.config.js: “plugins” is not allowedproblemvue-cli 创建vue工程,生成 vue.config.js需要再 vue.config.js 中使用 ModuleFederationPlugin按照 webpack 官方配置 此plugin后 重启服务报错$ vue-cli-service serve ERROR Invalid options in vue.config.js: "plugins" is not allowed原创 2022-04-05 09:40:08 · 6607 阅读 · 0 评论 -
[vue]Failed to resolve async component: function Header()
Failed to resolve async component: function Header()problem想要使用 webpack ModuleFederationPluginvue-cli5vue2webpack5功能app1(8080) provider 提供Header组件app2(8081) consumer 消费Header组件配置 webpackapp1 成功 export http://localhost:8080/remoteEntry.jsapp原创 2022-04-05 10:37:02 · 7481 阅读 · 0 评论 -
浅记组件缓存问题
页面A 弹窗C 表单填写之后在弹窗上点击预览跳转到页面B 预览表单生成的PDF回到A 实际:自动刷新页面,期望:不要刷新页面,并且保持弹窗C存在。原创 2022-11-14 15:24:25 · 456 阅读 · 0 评论 -
Uncaught TypeError: Cannot read properties of undefined (reading ‘createElementVNode‘)
通过 vite-plugin-cdn-import 配置 cdn。每个包的具体版本,可以在 yarn.lock中找到。主要包括 vue element。原创 2023-10-08 15:40:31 · 1235 阅读 · 0 评论 -
swift加载h5页面空白
swift加载h5页面空白。原创 2023-10-04 17:43:12 · 551 阅读 · 0 评论 -
ts-Type ‘xxx | null‘ is not assignable to type ‘xxx‘. Type ‘null‘ is not as assignable to type ‘xxx‘
button 可能为null 不存在。原创 2023-08-19 17:31:59 · 654 阅读 · 0 评论 -
ts Cannot redeclare block-scoped variable ‘name‘.
默认状态,DOM typings 是全局运行环境,原创 2023-08-19 12:01:50 · 796 阅读 · 0 评论 -
微信小程序 快速获取手机号 getphonenumber fail privacy permission is not authorized, errno: 104
常见说法:微信小程序号没有认知 (实际我们的小程序已经认证了)后来解决:将失败的微信号退出后再次登录就好了。原创 2023-08-16 07:59:40 · 4030 阅读 · 0 评论 -
ts: Property ‘resetFields‘ does not exist on type ‘Ref
背景:ts + vue3 + element plus。根据element plus 官方文档校验规则。原创 2023-05-23 10:11:08 · 465 阅读 · 0 评论 -
ts: for循环 Element implicitly has an ‘any‘ type because index expression is not of type ‘number‘.
【代码】ts: for循环 Element implicitly has an ‘any‘ type because index expression is not of type ‘number‘.原创 2023-05-23 09:23:29 · 1118 阅读 · 0 评论 -
vue webpack 使用sass 报错
vue webpack 使用sass 报错。原创 2023-05-14 09:51:10 · 341 阅读 · 0 评论 -
[Component] <canvas>: canvas 2d 接口支持同层渲染且性能更佳,建议切换使用。详见文档
Component] : canvas 2d 接口支持同层渲染且性能更佳,建议切换使用。详见文档。原创 2023-05-13 18:53:42 · 1803 阅读 · 2 评论 -
[wechat]微信小程序 echarts 无法滚动
微信小程序 echarts 无法滚动。原创 2023-05-12 17:04:11 · 1370 阅读 · 0 评论 -
index.wxss 中的本地资源图片无法通过 WXSS 获取,可以使用网络图片
微信小程序background-image不能加载本地图片。原创 2023-05-12 16:11:38 · 846 阅读 · 0 评论 -
Error: Can‘t resolve ‘babel-runtime/core-js/promise‘
启动项目,项目中用到了 Promise,页面和控制台报错。原创 2023-05-05 10:23:20 · 673 阅读 · 0 评论 -
Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
package.json devDependencies 添加以下包。使用 pnpm 启动 项目,报错如下。webpack版本问题,具体不太清楚。最终尝试成功的办法是。原创 2023-05-05 10:21:45 · 234 阅读 · 0 评论 -
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://re
在使用 pnpm install 和 pnpm add 时,控制台报错如下。尝试1:更新pnpm版本到最细。尝试2:更新npmn源。原创 2023-05-05 10:00:22 · 6990 阅读 · 0 评论