Hi @Agarwal, Praveen Kumar (CONTRACTOR) ,
Which version of Visual Studio are you using? What is your project type?
Please first check if the [ ] in your code matches or not. And ensure that there are no problems with your code.
If your code is good, it may be caused by the TypeScript version. Please right click your project, click on Property and navigate to TypeScript Build to change your TypeScript version to the latest version.
If it doesn’t work, you can refer to the similar issue to update TypeScript to the latest version with npm.
Sincerely,
Anna
*
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.