Hongbo Miao Hongbo Miao - 1 year ago 479
TypeScript Question

error TS2300: Duplicate identifier 'export='

I am using angular/universal-starter as starter which uses TypeScript 2 and Webpack 2.

I added packages

. After adding these packages and related typings:

"@types/bluebird": "3.0.31",
"@types/nodemailer": "1.3.30",

it gives me this error in the terminal:

(772,5): error TS2300: Duplicate identifier 'export='.

ERROR in /project/node_modules/@types/bluebird/index.d.ts (772,1):
error TS2300: Duplicate identifier 'export='.

[Not sure whether it helps] Note after installing @types/nodemailer, @type/nodemailer has its own node_modules folder including @type/bluebird (which is an old bluebird typings version 2.0.0):

enter image description here

My tsconfig.json file:

"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"removeComments": true,
"sourceMap": true,
"lib": ["es6", "dom"]
"include": [
"exclude": [
"compileOnSave": false,
"buildOnSave": false,
"atom": {
"rewriteTsconfig": false

How can I solve this error? Thanks

Answer Source

Not sure what cause it. But I got update for these packages, after updating all of them to latest packages:

"bluebird": "3.4.1",
"nodemailer": "2.5.0",
"@types/bluebird": "3.0.32",
"@types/nodemailer": "1.3.31",

The issue is gone.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download