11

请教关于使用 typescript 开发 vue 时, vscode 会对 template 内的属性报错的问题

 3 years ago
source link: https://www.v2ex.com/t/787925
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Vue.js

请教关于使用 typescript 开发 vue 时, vscode 会对 template 内的属性报错的问题

  laicanwen · 17 小时 49 分钟前 · 282 次点击

项目是直接拉的 element-plus,已经安装 vuter 和 volar 插件。但打开任意一个 .vue 文件后模板部分会报错:Cannot find name 'XXX'. ts(2304)
虽然问题不影响使用,但看着很别扭。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK