更新vue版本以后,typescript报错,具体如下

weixin_38069146 2018-11-09 01:32:21
这是我的报错代码 import Vue from 'vue'; export declare type VueClass = { new (): Vue; } & typeof Vue; export declare type DecoratedClass = VueClass & { __decorators__?: ((options: Vue.ComponentOptions<Vue>) => void)[]; }; 这是报错内容 ERROR in /myproject/node_modules/vue-class-component/lib/declarations.d.ts (6,33): error TS2702: 'Vue' only refers to a type, but is being used as a namespace here.
...全文
153 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38098649 2018-11-09
  • 打赏
  • 举报
回复
只是依赖报错,好像版本错误,但尝试多次还是不行
weixin_38089851 2018-11-09
  • 打赏
  • 举报
回复
啊,这是ts的写法吗?完全看不懂的路过。。。

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧