VUE中Property ‘xxxx’ does not exist on type ‘CombinedVueInstance

报错内容

Property ‘xxxx’ does not exist on type 'CombinedVueInstance<{ readyOnly: unknown; businessPrice: unknown; travelStaffInfo: any; } & Record<never, any> & Vue, object, object, object, Record<never, any>>. Vetur


报错原因

Vetur配置问题


解决方法

  1. 打开设置界面
  2. 搜索 Vetur
  3. 滑到底部找到 Validation: Interpolation 一栏
  4. 取消勾选,关闭该选项即可
  • 或者直接在 settins.json 文件中添加 "vetur.validation.interpolation": false

说明

文章借鉴于大佬 十月的秋 转载总结的文章

猜你喜欢

转载自blog.csdn.net/qq_44900902/article/details/120060444
今日推荐