hughsk / disc

:chart_with_upwards_trend: Visualise the module tree of browserify project bundles and track down bloat.
http://hughsk.io/disc
Other
1.33k stars 83 forks source link

error "Duplicate data property in object literal not allowed in strict mode" #53

Open crobinson42 opened 8 years ago

crobinson42 commented 8 years ago

May be related to #51 ... Getting this error on cli command discify bundle.js > disc.html

Corys-MBP:~/projects/therms/.tmp/public/js (records)$ discify bundle.js > disc.html
/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:6268
            throw e;
            ^

Error: Line 10375: Duplicate data property in object literal not allowed in strict mode
    at throwError (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2159:21)
    at throwErrorTolerant (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2171:24)
    at parseObjectInitialiser (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2531:25)
    at /usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:5832:38
    at parsePrimaryExpression (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2657:20)
    at /usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:5832:38
    at trackLeftHandSideExpressionAllowCall (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:5732:61)
    at parsePostfixExpression (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2795:20)
    at /usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:5832:38
    at parseUnaryExpression (/usr/local/lib/node_modules/disc/node_modules/browser-unpack/node_modules/esprima-fb/esprima.js:2859:16)
menonsamir commented 8 years ago

+1