How To Run TypeScript In VSCode | Create TS Project | Compile TypeScript

preview_player
Показать описание
(We're free online community, meet other makers!)

#typescript #vscode #visualstudiocode Hey guys in this tutorial I'll show you how to install and setup TypeScript in VScode (Visual Studio Code,) transpile (compile typescript TS file into JS in Terminal on command line) and debug your typescript program with NodeJS.

00:00 How to run TypeScript files in VSCode (intro)
00:10 Create a new TypeScript project in VS Code
01:04 TypeScript Hello World Example
01:52 Install typescript with NPM (node package manager) in terminal on command line
02:35 How to change terminal from powershell to bash (command line)
02:45 Check Typescript version on command line / terminal
03:06 Run tsc to transpile your ts source code file to js
05:16 How to make output directory for js files in typescript
06:16 How to add source map in typescript
06:45 How to debug typescript in vscode
Рекомендации по теме
Комментарии
Автор

Thanks a lot man, I spent more than an day viewing websites to solve this problem. The video was amazing

VictorNwachukwu-er
Автор

I have checked around 100 websites but finally only yu could explain it so good, thanks mate!

malcomwaltermaccoinnich
Автор

this video really most helpful, I solve my problem after 3 hour's waste time just showing this video

khaledsifullah
Автор

This was really helpful, keep the good work up!!!

dilkiawaz
Автор

Thanks for this basic tutorial, at least first success for me setting up typescript project. Let me do more!

traezeeofor
Автор

Thank you, this was really helpful for me !!!

trungkiennguyen
Автор

did you tried using export function and then compiling using nodejs

vhvl
Автор

Thank you for this great effort
extremely beneficial ❤️

MohamedFatMak
Автор

When I try to debug typescript it gives me a syntax error, while when I try with the compiled the js file it works fine. did I miss something?

h__m
Автор

when i enter " tsc first.ts" the " first.js" comes empty

ahmadxgame
Автор

when i transpile i get the js file but nothing appears in it what should i do?

ATK.HARDLNE
Автор

your half video is workin and other half is not working wtf is this??

danishgaming
Автор

brother when i run the commant npm install -g typescript it's showing me an error npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir
npm ERR! [Error: EACCES: permission denied, mkdir {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path:
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!


now what to do ???

adityababu