atom-typescript complaining about tsconfig.json--h

2020-05-21 08:38发布

问题:

I just started playing with the "atom-typescript" plugin as referenced here:

Getting Started With TypeScript

The page states that to utilize atom-typescript, we literally just need to:

Now create a new .ts TypeScript file and start hacking away. AtomTS will take care of compiling it to .js and create a default tsconfig.json TypeScript project file for you.

This is not the case as I've created a simple directory structure and when attempting to build any *.ts file receive the following error:

The error states I need to utilize the 'Create tsconfig.json project file' command--I simply cannot locate this command.

I understand I can create the file manually but I would like to know if / where the file can be created automatically. Thanks!

回答1:

Type cmd(ctrl)+shift+p to bring up the list of commands and then tsconfig to find the command to generate the tsconfig.json file.



回答2:

install typescript,then excute "tsc --init" command in shell. will generate tsconfig.json file.