main.ts 出现APP出现了红线

来源:4-5 集成Ant Design Vue

慕运维8188418

2021-03-26

TS2345: Argument of type ‘typeof import(“E:/\u4E0B\u8F7D/\u6781\u5BA2\u5927\u5B66/myRebirth-springboot-myBlog-B17041811\u738B\u6C38\u5065/WikiApplication/web/node_modules/vue/dist/vue”)’ is not assignable to parameter of type ‘Component<any, any, any, Record<string, ComputedGetter | WritableComputedOptions>, MethodOptions>’.
Type ‘typeof import(“E:/\u4E0B\u8F7D/\u6781\u5BA2\u5927\u5B66/myRebirth-springboot-myBlog-B17041811\u738B\u6C38\u5065/WikiApplication/web/node_modules/vue/dist/vue”)’ is not assignable to type ‘ComponentOptions<any, any, any, Record<string, ComputedGetter | WritableComputedOptions>, MethodOptions, any, any, any>’.
Type ‘typeof import(“E:/\u4E0B\u8F7D/\u6781\u5BA2\u5927\u5B66/myRebirth-springboot-myBlog-B17041811\u738B\u6C38\u5065/WikiApplication/web/node_modules/vue/dist/vue”)’ is not assignable to type ‘ComponentOptionsBase<any, any, any, Record<string, ComputedGetter | WritableComputedOptions>, MethodOptions, … 4 more …, {}>’.
Types of property ‘computed’ are incompatible.
Type ‘{ (getter: ComputedGetter): ComputedRef; (options: WritableComputedOptions): WritableComputedRef; }’ is not assignable to type ‘Record<string, ComputedGetter | WritableComputedOptions>’.
Index signature is missing in type ‘{ (getter: ComputedGetter): ComputedRef; (options: WritableComputedOptions): WritableComputedRef; }’.

写回答

1回答

甲蛙

2021-03-27

这样看不出来,可以把报红的相关代码截出来看看

0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程