
vue问题解决
冯浩(grow up)
少年仗剑江湖,暮年英姿华发
展开
-
Argument of type ‘any‘ is not assignable to parameter of type ‘never‘.
在ts中push数据发现报错显示我们的类型不一样。原创 2024-11-11 22:45:33 · 1285 阅读 · 0 评论 -
Argument of type ‘string | null‘ is not assignable to parameter of type ‘string‘. Type ‘null‘ is n
出现这个错误是在ts中使用 JSON.parse和localStorage.getItem出现的。原创 2024-11-11 22:20:07 · 777 阅读 · 0 评论 -
Property ‘name‘ does not exist on type ‘Object‘.
该报错是说我们的object对象中没有name这个属性(常在vue3+ts中出现)原创 2024-11-11 22:11:01 · 668 阅读 · 0 评论 -
Could not find a declaration file for module ‘module-name‘. ‘/path/to/module-name.js‘ implicitly has
提醒这个说明我们在编译的时候启动了ts编译。禁用掉就好了。原创 2024-11-11 22:03:49 · 371 阅读 · 0 评论 -
sh: vue-cli-service: command not found
在启动项目的时候报错:vue-cli-service: command not found。原创 2024-11-10 21:08:58 · 1921 阅读 · 0 评论 -
解决浏览器端 globalThis is not defined 报错
在使用低版本火狐浏览器出现报错globalThis is not defined。原创 2024-02-03 17:30:00 · 3326 阅读 · 0 评论 -
谷歌浏览器报错:VM108:5 crbug/1173575, non-JS module files deprecated.
控制台调整为fast 3G。原创 2023-10-21 14:46:03 · 236 阅读 · 0 评论 -
创建vite项目报错:Could not install from “xxxx“ as it does not contain a package.json file.
【代码】创建vite项目报错:Could not install from "xxxx" as it does not contain a package.json file.原创 2023-09-17 18:56:50 · 1001 阅读 · 0 评论 -
前端开发之Element Plus的分页组件el-pagination显示英文转变为中文
在使用element的时候分页提示语句是中文的到了element-plus中式英文的,本文讲解的就是怎样将英文转变为中文。原创 2023-05-14 09:19:20 · 5817 阅读 · 0 评论 -
vue3使用less中:deep不生效
vue3 淘汰了 ::v-deep 要修改样式的类名 { 内容 }vue3 采用 :deep(要修改样式的类名) { 内容 }vue3对deep的官方讲解。原创 2023-04-05 21:56:32 · 4572 阅读 · 2 评论 -
警告 Unexpected any. Specify a different type
"@typescript-eslint/no-explicit-any": ["off"]原创 2023-04-04 10:05:49 · 3876 阅读 · 0 评论 -
Element implicitly has an ‘any‘ type because expression of type ‘string‘ can‘t be used to index type
中文报错:元素隐式具有 “any” 类型,因为类型为 “string” 的表达式不能用于索引类型 “UserInfo”。原创 2023-04-01 14:13:24 · 1661 阅读 · 0 评论 -
vue3+ts-----File ‘G:/xxxxx/smartCity/smartcitycli/src/config/index.ts‘ is not a module.
文件“G:/xxxx/smartCity/smartcitycli/src/config/index.ts”不是模块。原创 2023-03-31 20:13:30 · 880 阅读 · 0 评论 -
Require statement not part of import statement @typescript-eslint/no-var-requires
【代码】Require statement not part of import statement @typescript-eslint/no-var-requires。原创 2023-03-31 12:27:33 · 871 阅读 · 0 评论