【发布时间】:2020-09-24 18:00:04
【问题描述】:
我使用 cli v4.4.1 安装 vue。
之后我运行这个命令来更新到 Vue3:vue add vue-next。
当我打开main.ts 时,我收到打字稿错误:
Argument of type 'typeof import("c:/../vue-app/node_modules/vue/dist/vue")' is not assignable to parameter of type 'PublicAPIComponent'.
我需要做什么来解决这个错误?
【问题讨论】:
-
此处相同,因此无法为应用程序提供服务
-
解决方法:
createApp(app as any)。 Vue 团队发布了 vue3,但我们不费吹灰之力就发现了一个问题 :(
标签: typescript vue.js