create-vite-app | Create a Vite-powered app in seconds | Frontend Framework library
kandi X-RAY | create-vite-app Summary
kandi X-RAY | create-vite-app Summary
Create a Vite-powered app in seconds!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of create-vite-app
create-vite-app Key Features
create-vite-app Examples and Code Snippets
Community Discussions
Trending Discussions on create-vite-app
QUESTION
My setup: I installed Vue and Vite via the create-vite-app module, and then updated all the packages that was generated by 'init vite-app' to the very latest RC versions for Vue and Vite.
Now I want to use typescript for all my code. First I just played around a little bit, and added the lang="ts" to the tag in HelloWorld.vue. That seems to work, though I have no idea how typescript gets transpiled from the vue file though.
Then I tried to rename the main.js to main.ts. Now nothing happen.
I was thinking that I just need to install typescript, but then it hit me, why is it working in the .vue component then? Am I doing something wrong if I install typescript now?
Why does typescript work in the vue module (HelloWorld), but no js is generated from the *.ts file?
...ANSWER
Answered 2020-Oct-20 at 05:16I will create a vite project to use typescript step by step:
- first, we should create a vite project at first
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install create-vite-app
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page