首先我引入:import Vue from 'vue'
但是 Vue.prototype 就报错,没有prototype属性,真是奇怪啦,我也是刚接触TypeScript
看看是这个不
https://v3.cn.vuejs.org/guide/migration/global-api.html#%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E5%85%A8%E5%B1%80-api-createapp
我是写在main.ts 文件里的
楼主这个问题解决了么,我也遇到了。。。