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
这样看不出来,可以把报红的相关代码截出来看看
00
相似问题
回答 3
回答 2