Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error node_modules/jest-diff/build/diffLines.d.ts(8,13): error TS1005: '=' expected. in nest js

when i start and run the nestjs app in watch mode using npm run start:dev command then this error show.

ERROR in node_modules/jest-diff/build/diffLines.d.ts(8,13): error TS1005: '=' expected.
node_modules/jest-diff/build/diffLines.d.ts(8,34): error TS1005: ';' expected.
node_modules/jest-diff/build/index.d.ts(10,13): error TS1005: '=' expected.
node_modules/jest-diff/build/index.d.ts(10,34): error TS1005: ';' expected.
node_modules/jest-diff/build/index.d.ts(11,1): error TS1128: Declaration or statement expected.
node_modules/jest-diff/build/index.d.ts(11,13): error TS1005: ';' expected.
node_modules/jest-diff/build/index.d.ts(11,52): error TS1005: ';' expected.
node_modules/jest-diff/build/printDiffs.d.ts(8,13): error TS1005: '=' expected.
node_modules/jest-diff/build/printDiffs.d.ts(8,57): error TS1005: ';' expected.
like image 555
Krishna Jangid Avatar asked Dec 17 '22 12:12

Krishna Jangid


1 Answers

you have to update your typescript version with the latest version of typescript in your package.json file

in my case, I update with

 "typescript": "^3.9.7"
like image 182
Krishna Jangid Avatar answered Dec 31 '22 08:12

Krishna Jangid