Setup a TypeScript Project

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Getting started with TypeScript is easier than ever. You can setup a development environment right in your browser or even quickly put together a local environment in using the parcel bundler.

David Krause
~ 5 years ago

I typed in src="./index.ts" and it didn't work. I've never tried Parcel before so when I went to localhost:1234 and saw nothing, I assumed Parcel was broken and/or bad software. After about 15 minutes I removed the script tag and then finally the html started showing in the inspect panel. As an experiment I added the script tag again using src="index.ts." That compiled the TS and served the page.

David Krause
~ 5 years ago

Also, I was able to type in just node index.ts in the console and it worked.

Conekta
~ 5 years ago

I'm not happy with these courses, they're awfully explained, they don't go into details to explain what is happening like, what is Parcel? Why do I need to install it?

You never explain that, you just install int and ask me to run it like it's magic.

Egghead courses are not as good as I expected.

Kerem Gocen
~ 3 years ago

@Conekta, I'm a little late to the party but parcel-bundler just looks like an alternative to Webpack, to bundle your modules into static assets. It has its ups and downs; https://blog.logrocket.com/benchmarking-bundlers-2020-rollup-parcel-webpack/

Cian
~ 2 years ago

If you're using CodeSandbox note that in the very next video the host assumes that you haven't selected Vanilla TS, but React + TS.

~ 2 years ago

The first lesson doesn't even work. Codesandbox wont work as you showed.

Lucas Minter
~ 2 years ago

You should just be seeing "Hello from TypeScript" in your console.