docascode / type2docfx

A tool to convert json format output from TypeDoc to universal reference model for DocFx to consume.
Apache License 2.0
17 stars 10 forks source link

Problem in postTransformer.js #28

Closed mishasmaha closed 4 years ago

mishasmaha commented 6 years ago

I try convert json file to yml and process faild with error:

C:\**\node_modules\type2docfx\dist\postTransformer.js:74
                references_1.forEach(function (ref) {
                             ^

TypeError: Cannot read property 'forEach' of undefined
    at C:\**\node_modules\type2docfx\dist\postTransformer.js:74:30
    at Array.forEach (<anonymous>)
    at C:\**\node_modules\type2docfx\dist\postTransformer.js:72:22
    at Array.forEach (<anonymous>)
    at Object.insertClassReferenceForModule (C:\**\node_modules\type2docfx\dist\postTransformer.js:68:21)
    at Object.<anonymous> (C:\**\node_modules\type2docfx\dist\main.js:94:23)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

How I can do for fix this problem?

GaloisGirl commented 5 years ago

Did you generate your json with TypeDoc? What version? If 0.14.0, does downgrading to 0.13.0 help?

mishasmaha commented 5 years ago

@GaloisGirl I fix my problem in #30 , but PR is not approved(

qinezh commented 4 years ago

Closed as the issue has already been fixed in latest version.