[英]Vetur does not work properly in template(not checking data, method...)
I'm using the vetur extension of the vscode in my vue project with typescript.我在我的带有打字稿的 vue 项目中使用了 vscode 的 vetur 扩展。 I just found out that vetur can actually check inside template tag for my prop, method... and even type checking for the variable.
我刚刚发现 vetur 实际上可以检查我的道具、方法的模板标签内部……甚至可以检查变量的类型。 But in my case, it does nothing, no type check, no valid name-checking, no hover information (the thing I want the most).
但就我而言,它什么都不做,没有类型检查,没有有效的名称检查,没有悬停信息(我最想要的东西)。 I wonder if there needs to be some setting for this to work.
我想知道是否需要一些设置才能使其工作。 Some information in my case :
在我的情况下的一些信息:
vscode version 1.49.0 vscode 版本 1.49.0
vetur version v0.27.3 vetur 版本 v0.27.3
using vue v2.6.11 with vue-class-component使用 vue v2.6.11 和 vue-class-component
对于任何寻找答案的人,我必须转到设置 json 文件并添加
vetur.experimental.templateInterpolationService: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.