- Notifications
You must be signed in to change notification settings - Fork0
🎉🎉🎉🎉 vite2 + vue3 + vue-router4 + vuex4 + element-plus
License
dmoosocool/vite-vue3-element-plus
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This template should help get you started developing with Vue 3 and Typescript in Vite.
VSCode +Vetur. Make sure to enablevetur.experimental.templateInterpolationService in settings!
<script setup> is a feature that is currently in RFC stage. To get proper IDE support for the syntax, useVolar instead of Vetur (and disable Vetur).
Since TypeScript cannot handle type information for.vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in.vue imports (for example to get props validation when using manualh(...) calls), you can use the following:
RunVolar: Switch TS Plugin on/off from VSCode command palette.
- Install and add
@vuedx/typescript-plugin-vueto theplugins section intsconfig.json - Delete
src/shims-vue.d.tsas it is no longer needed to provide module info to Typescript - Open
src/main.tsin VSCode - Open the VSCode command palette
- Search and run "Select TypeScript version" -> "Use workspace version"
About
🎉🎉🎉🎉 vite2 + vue3 + vue-router4 + vuex4 + element-plus
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.