laicanwen
V2EX  ›  Vue.js

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

  •  
  •   laicanwen · Jul 6, 2021 · 2321 views
    This topic created in 1796 days ago, the information mentioned may be changed or developed.

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

    1 replies    2021-07-07 15:27:44 +08:00
    Kasumi20
        1
    Kasumi20  
       Jul 7, 2021
    都上 ts 了,还用啥 jier Vue,直接就上 React
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2813 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 08:42 · PVG 16:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.