How to create a VueJS app with TypeScript

How to create a VueJS app with TypeScript

Back with another blog, You have already listened to the hype of TypeScript like why people prefer type-safety nowadays and it's good to build a project with the bug-free version, sometimes bugs are the hidden surprise to the developer or you can say they are other use cases which haven't covered in your code. Bugs are real and expect them. They are not always the major loopholes, sometimes they raise from unhandled practices. Let's see how to get started with TypeScript in VueJS.

Firstly, let me tell you in the VueJS ecosystem, users are not forced to use TypeScript, unlike Angular. It's pretty much flexible and progressive but in Vue3 there's built-in support for TypeScript. So, without installing other packages now create the TypeScript app from the official CLI.

Make sure you have installed Vue CLI globally,

yarn global add @vue/cli        

If already installed, check the version

vue --version
vue create project-app        
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Voila!!! Follows the step then change the directory with project name.

To view or add a comment, sign in

More articles by Shivam Gupta

Explore content categories