As an experienced dog attempting to master new tricks like npm and TypeScript, I find myself faced with a challenge in my Visual Studio 2017 project. Despite setting it to "Latest" TypeScript 2.5 and adding @types/jquery (3.2.12), the project keeps throwing errors about not being able to locate 'Iterable'. Searching for solutions led me to various resources, such as:
TypeScript error: node_modules/@types/three/three-core.d.ts(767,24): Error TS2304: Cannot find name 'Iterable' https://github.com/DefinitelyTyped/DefinitelyTyped/issues/17239 TS-2304 Error - can not find name 'Iterable' in TypeScript while importing "jquery" in ".ts" fileIn my current tsconfig.json file, the following settings are specified:
{
"compilerOptions": {
"lib": [
"dom",
"es5",
"es2015.iterable"
],
"target": "es5"
},
"exclude": [
"node_modules"
]
}
Despite trying different combinations of libraries and targets, the 'Iterable' error persists. It feels like I've spent more time troubleshooting TypeScript than I would have coding in plain JavaScript. Could this issue be related to .NET Core templates? How can I ensure that the IDE is recognizing my tsconfig.json file as the only one in the project directory? Any guidance on resolving this would be greatly appreciated.