File tree 2 files changed +14
-6
lines changed
packages/create-app/template-vue-ts/src
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<img alt =" Vue logo" src =" ./assets/logo.png" />
3
- <HelloWorld msg =" Hello Vue 3 + Vite" />
3
+ <HelloWorld msg =" Hello Vue 3 + TypeScript + Vite" />
4
4
</template >
5
5
6
6
<script lang="ts">
Original file line number Diff line number Diff line change 7
7
</p >
8
8
9
9
<p >
10
- Recommended setup:
10
+ Recommended IDE setup:
11
11
<a href =" https://code.visualstudio.com/" target =" _blank" >VSCode</a >
12
12
+
13
13
<a
21
21
>Vue DX</a >
22
22
</p >
23
23
<p >
24
- Make sure to use workspace version of TypeScript to get improved support via
24
+ If using & lt ; script setup & gt ; : use
25
25
<a
26
- href =" https://github.com/znck/vue-developer-experience "
26
+ href =" https://github.com/johnsoncodehk/volar "
27
27
target =" _blank"
28
- >@vuedx</a >.
29
- <br />Note @vuedx is still experimental and this setup is provided for early feedback.
28
+ >Volar</a > instead (and disable Vetur)
29
+ </p >
30
+ <p >
31
+ <b style =" color :red " >Make sure to use workspace version of TypeScript!!!</b >
32
+ <br />This leverages the
33
+ <code >@vuex/typescript-plugin-vue</code > to provide types for `*.vue` imports.
34
+ <br />1. Open
35
+ <code >src/main.ts</code > in VSCode
36
+ <br />2. Open VSCode command input
37
+ <br />3. Search and run "Select TypeScript version" -> "Use workspace version"
30
38
</p >
31
39
<button @click =" count++" >count is: {{ count }}</button >
32
40
<p >
You can’t perform that action at this time.
0 commit comments