antd 项目运行报错 Declaration or statement expected TS1128

TS1128: Declaration or statement expected
在这里插入图片描述
这里查到的是package.json 里"typescript": “3.8.2”, 鼠标移上去,看到最新版本是4.7.2,
在这里插入图片描述

修改版本 执行npm install
重新跑一下,ok

猜你喜欢

转载自blog.csdn.net/m0_49016709/article/details/125047427