BowlerHatLLC / dts2as

Convert TypeScript definitions (d.ts files) into ActionScript classes and interfaces for use as external libraries with Apache FlexJS
https://www.npmjs.com/package/dts2as
Apache License 2.0
39 stars 4 forks source link

TypeError: Cannot read property 'pos' of undefined #6

Closed blackjyn closed 8 years ago

blackjyn commented 8 years ago

Got error like this : dts2aserror I'm on WIndows 8.1 x64 with Node v.0.12.7

joshtynjala commented 8 years ago

Thanks for the bug report. I don't think I've tested with Node 0.12. I'll take a look soon. In the meantime, you might also try with a newer release of Node.

joshtynjala commented 8 years ago

Unfortunately, I cannot reproduce using the same environment. I also tried Windows 8.1 x64 with Node v0.12.7. I wonder what could be different...

blackjyn commented 8 years ago

Thanks Josh... Upgraded to v5.1.0 (latest stable) , and still no luck dts2aserroragain

joshtynjala commented 8 years ago

Could you share the contents of your pixi.js.d.ts file? Maybe the version you downloaded is different than mine somehow.

Also, I assume that you're using dts2as 0.6.1?

blackjyn commented 8 years ago

God... I'm sorry Josh.. Thanks for noticing the content. I was following your article on http://nextgenactionscript.com/tutorials/dts2as-typescript-definitions-with-actionscript/ So when I click the link that refer to https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/pixi.js/pixi.js.d.ts, unfortunately my download manager treat this as direct URL to download, so that was what I downloaded. And the content is kinda like HTML tags, instead of valid TypeScript source file.

then I realize the actual file should be the raw content taken from https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/pixi.js/pixi.js.d.ts

Sorry for this stupid sh*t.. You might want to update your article lilbit, to avoid other users doing this. May be by suggesting them to install official TSD package manager.

Thank you! :+1:

dtsok