I am working on a NodeJS project using typeScript. after doing npm install, at tsc command, i got similar multiple errors with the message "Duplicate Identifier 'Mongoose'".
My tsconfig.json is the following
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "./build",
"noImplicitAny" : true,
"sourceMap": true,
"typeRoots": [
"typings/global",
"typings/modules"
]
// "skipLibCheck": true
},
"compileOnSave": true,
"exclude": [
"node_modules"
]
}
The typeScript is installed globally. Does anybody knows why is happening this? Thank you!