Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find name 'Diagnostics'

Tags:

typescript

I've cloned the Typescript repo and am looking at the code, but it is full of this error:

Cannot find name 'Diagnostics'

on lines that look like this:

Diagnostics._0_expected

I can see a JSON file in the same folder, with a list of diagnostic messages, but how do I generate this file?

like image 662
Zev Spitz Avatar asked May 10 '26 00:05

Zev Spitz


1 Answers

You probably should build the library first.
Please refer to the building section in the readme file of your specific version (The build system used to be jake and now it is gulp).
All you need to do is:

  1. Install the build system globaly (jake/gulp)
  2. Run npm install
  3. Run jake local or gulp local (according to the build system).

building section of 1.7
building section of 1.8
Latest

like image 147
Sagi Avatar answered May 11 '26 14:05

Sagi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!