-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.19.0 broke support for typescript 3.9.7 #1362
Comments
I miss this problem too, when I can use it with no error? |
I got this problem too... |
@wsz7777 @ibwei So if this backward compatibility feature will not be merged I think the following options are available to you:
"devDependencies": {
"typedoc": "0.18.0"
} or just yarn add [email protected]
or just yarn remove typedoc
yarn add @tesler-ui/typedoc or you could fork yourself and implement changes and fix yourself using linked PR as a reference. |
thank you ,in my project use typescript around packages with @4.x can solve this problem. "typescript": "^4.0.2", |
thank you very much. I updated my typescript version according to your instructions, and the problem was solved. |
As discussed a bit in #1361, supporting old versions of TypeScript isn't really what I'd like to focus the time I have for this project on. |
As what others said I upgraded to "typescript": "^4.0.2" and it works great now. Thanks all! |
Recent upgrade to typescript
4.*.*
in 0.19.0 broke backward-compatibility for typescript 3.9.7 due to the unchecked usage ofts.isNamedTupleMember
call: e136469#diff-b580b34740b3647ff5b29f4cb299a61aR77which results in the following output when trying to generate documentation with TS 3.9.7:
I believe the change was introduced due to #1357.
Investigating further I've also found that the 0.17.0 also broke support for typescript 3.7.3 (which is version used in create-react-app
typescript template) due to the unchecked usage of
ts.isIdentifierOrPrivateIdentifier
: 5d41a2e#diff-560fefcd039cbf06578d6f95c3e57753R413I've prepared a PR to restore backward compatibility.
I've also found following issues warning about not following declared peer dependency: #1240, #1257, #979
Although I'll agree that backward compatibility might be not a requirement for
0.*.*
library and peer dependency are indeed warn you, broken typescript versions are pretty recent and the fix is pretty simple and non-invasive so it'll be nice to support those versions until typescript 4 stabilizes a bit so majority typedoc users may migrate to4.*.*
Search terms
isNamedTupleMember, isIdentifierOrPrivateIdentifier, typescript 3
Expected Behavior
typedoc is backward compatible for typescript versions 3.7.3 and 3.9.7
Actual Behavior
yarn typedoc
command results in the following output on the project with typescript 3.9.7:Steps to reproduce the bug
I've prepared an example project to reproduce the bug:
https://github.com/Dergash/typedoc-tamed-tuples (master branch for 3.7.3 example, 3.9.7 branch for 3.9.7)
Just clone it, yarn install, yarn typedoc and you'll receive the output
Environment
The text was updated successfully, but these errors were encountered: