I try to specify typescript version 4.8.2 in package.json:
{
"name": "test-todo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "ts-node-dev src/index.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/express": "^4.17.7",
"@types/mongoose": "^5.7.36",
"ts-node-dev": "^1.0.0-pre.57",
"typescript": "^4.8.2"
},
"dependencies": {
"@angular/http": "^7.2.16",
"@types/jest": "^29.0.0",
"body-parser": "^1.19.0",
"express": "^4.17.1",
"mongoose": "^5.10.0"
}
}
But it still launches with:
> test-todo@1.0.0 start
> ts-node-dev src/index.ts
[INFO] 15:20:10 ts-node-dev ver. 1.1.8
(using ts-node ver. 9.1.1,
typescript ver. 3.9.10) <------------
So how can I get MSVS2022 to launch my Typescript/Angular/Node solution with to typescript v 4.8.2?