Duplicate identifier 'export ='
I know this question has been asked here before, but none of the solutions work for me. I have the following tsconfig:
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"declaration": true,
"outDir": "./dist"
},
"typeRoots": ["./node_modules/@types/*"],
"include": [
"./src/**/*"
]
}
but when i run tsc
i get:
../node_modules/@types/passport/index.d.ts(100,5): error TS2300: Duplicate identifier 'export='.
node_modules/@types/passport/index.d.ts(100,5): error TS2300: Duplicate identifier 'export='.
How is it possible that I am still getting ../node_modules/@types/ (etc)
when I specifically said it only includes folder ./src
and only types from ./node_modules/@types
?
I am using typescript Version 2.4.0 (but have the same problem with version 2.3.4)
+3
source to share