Open hdi-amiri opened 3 years ago
Same issue here.
Just for better debugging here's a copy of my json which couldn't be parsed (I had to rename to .txt
so I could upload on github)
I have the same issue.
Same issue here.
Did anyone figure out a fix for this? I'm running into a similar problem.
I'm still having the same issue as well
Same issue for me to.
@hadiamiri could you tell me which version of docfx your use?
same problem here. the isExported flag is missing from the top-level nodes (just like in @iJungleboy 's case file), and I have no idea how to change this.
This is where everything is ignored: https://github.com/docascode/type2docfx/blob/v0.10.5/src/parser.ts#L60
@yunair I use typedoc 0.21.5, type2docfx 0.11.2, and docfx 2.58.0 (btw: why is the docfx version interesting?)
I also don't understand why type2docfx's latest version is 0.11.2 on npmjs.org and the latest version in this repo seems to be 0.10.5.
possibly related: TypeStrong/typedoc#888
As noted in TypeStrong/typedoc#888 ,
The isExported flag was removed in 0.20. TypeDoc only documents exported members now.
See also the release notes https://github.com/TypeStrong/typedoc/releases/tag/v0.20.0 :
isExported / isConstructorProperty ReflectionFlags remvoed
So ignoring nodes without this flag set to true
has become incompatible:
https://github.com/docascode/type2docfx/blob/v0.10.5/src/parser.ts#L60
same problem here. the isExported flag is missing from the top-level nodes (just like in @iJungleboy 's case file), and I have no idea how to change this.
This is where everything is ignored: https://github.com/docascode/type2docfx/blob/v0.10.5/src/parser.ts#L60
@yunair I use typedoc 0.21.5, type2docfx 0.11.2, and docfx 2.58.0 (btw: why is the docfx version interesting?)
I also don't understand why type2docfx's latest version is 0.11.2 on npmjs.org and the latest version in this repo seems to be 0.10.5.
Because when you use docfx V2, the corresponding version of type2docfx is 0.10.X. when you use docfx V3, you need to use a version higher than 0.11.0
The latest version of typedoc that type2docfx support is 0.15 because new version of typedoc change the rule of uid generator, then we can't simply upgrade typedoc.
so if you use docfx V2, you need to install typedoc@0.15.0
and type2docfx@0.10.5
.
if you use docfx V3, you need to install typedoc@0.15.0
and type2docfx
thanks for the information!
I am using this library with TypeDoc 0.20.26, I get the
json
output by setting"json": "json-doc"
inside mytsconfig.json
file and output is generated. But when I want to use it by entering following command to get the yaml output, I get the error that follows:type2docfx json-doc.json yaml-dir
type2docfx version: v0.11.2