Typescript can’t be setup to compile to JavaScript that runs in the browser. Typescript works fine for nodejs projects with defaults but not client side js. Prove me wrong.
Steps to reproduce:
- open vscode
- open a folder in vscode
- create an html page
- create a js file (index.ts)
- add an npm module (client side)
- import that module (import * from “”)
- add a script tag to the html page
- use tsc –init to create a tsconfig.json
- launch localhost and open the page in the browser
You will get errors throughout your project.
See previous posts here.
DON’T EDIT MY POSTS!!!