microsoft / TypeScript-Vue-Starter

A starter template for TypeScript and Vue with a detailed README describing how to use the two together.
MIT License
4.45k stars 592 forks source link

<script lang='ts'> doesn't give opportunity to see all warnings and errors highlights in ".vue" files. #15

Closed CodeLookBook closed 7 years ago

CodeLookBook commented 7 years ago

For example: Look of the code in ".vue" file (IDE: phpStorm). image At the same time, console message is correct. image

Is that a problem of phpStorm?

Zzzen commented 7 years ago

Yes, it is. vue-ts-issue

danielding commented 7 years ago

@Zzzen how did you make tslint run well? 请问怎么弄出来提示的?我试了不行。

Zzzen commented 7 years ago

下载这个仓库,安装好依赖就可以了。你确定使用的是最新版的tsc和vscode?@danielding

danielding commented 7 years ago

@Zzzen 试了,不行啊

CodeLookBook commented 7 years ago

What about English ?))

peterchealse commented 7 years ago

seperate the ts from vue file, just write a ts file

Zzzen commented 7 years ago

Are you using the lastest vscode and tsc? I just downloaded this repo and everything worked fine @CodeLookBook

DanielRosenwasser commented 7 years ago

Should work if you're using Vetur. I can't speak for the Webstorm experience.

wuservices commented 6 years ago

As for WebStorm, it looks like code within a SFC in <script lang="ts"> doesn't really get the TypeScript treatment due to https://youtrack.jetbrains.com/issue/WEB-30807. Please vote there if you (like me) want that and arrived here trying to make that work.

DanielRosenwasser commented 6 years ago

Thanks for linking to that @wuservices!

I encourage other WebStorm users to surface feedback there.

Google Translate: 我鼓励其他WebStorm用户在那里提供反馈。