Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

TypeError at parser.js:277 #6

Description

@kchodorow

I'm trying to run this on (three.d.ts)[https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/threejs/three.d.ts] and getting:

$ /usr/local/lib/node_modules/tsd2cce/bin/tsd2cee three.d.ts x.js
/usr/local/lib/node_modules/tsd2cce/src/parser.js:277
        type[member.name.text] = {};
                        ^

TypeError: Cannot read property 'text' of undefined
    at /usr/local/lib/node_modules/tsd2cce/src/parser.js:277:25
    at Array.forEach (native)
    at Parser.transformType_ (/usr/local/lib/node_modules/tsd2cce/src/parser.js:276:25)
    at Parser.appendType_ (/usr/local/lib/node_modules/tsd2cce/src/parser.js:238:23)
    at /usr/local/lib/node_modules/tsd2cce/src/parser.js:299:19
    at Array.map (native)
    at Parser.getParameters_ (/usr/local/lib/node_modules/tsd2cce/src/parser.js:298:28)
    at Parser.defineMethod (/usr/local/lib/node_modules/tsd2cce/src/parser.js:368:12)
    at traverse (/usr/local/lib/node_modules/tsd2cce/src/parser.js:79:16)
    at visitEachNode (/usr/local/lib/node_modules/tsd2cce/node_modules/typescript/lib/typescript.js:7255:30)

I installed from NPM:

$ npm list -g tsd2cce 
/usr/local/lib
└── tsd2cce@0.1.1 

Let me know if you need any other info!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions