on building my VS application, I'm getting in index.t.ts file

2022-07-13T16:56:27.46+00:00

On Building the Visual Studio application, I'm getting below list of errors.
Appreciate if someone could help me with some solution.

220407-image.png

Severity Code Description Project File Line Suppression State
Error TS1005 Build:']' expected. BuyerPortal.WebApp.Web C:\Users\p.agarwal\source\repos\Temp1\node_modules\@types\jest\index.d.ts 416

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,893 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,821 Reputation points Microsoft Vendor
    2022-07-14T04:54:35.557+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.