-
-
Notifications
You must be signed in to change notification settings - Fork 737
Add support for TypeScript 4.3 #1589
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
Comments
Right now it fails on my side with following error message:
let me know if I can help somehow! Thanks |
- 3rd library の更新 - typescript 4.3.2 は TypeDoc がまだ未対応なので見送り TypeStrong/typedoc#1589
Is there any particular reason why this "peerDependencies": {
"typescript": "3.9.x || 4.0.x || 4.1.x || 4.2.x"
}, isn’t this? "peerDependencies": {
"typescript": ">= 3.9"
}, |
In TypeScript function But error starts earlier in TypeDoc // FIXME: This is a horrible hack because getTypeOfSymbol is not exposed.
// The right solution here is probably to keep track of parent nodes...
// but that's tricky because not every reflection is guaranteed to have a
// parent node. This will probably break in a future TS version.
reflection.type = context.converter.convertType(context, (_c = (context.isConvertingTypeNode() ? parameterType : void 0)) !== null && _c !== void 0 ? _c : context.checker.getTypeOfSymbolAtLocation(symbol, {})); Also, there are few other failed checks for |
This is probably going to be a weekend of June 5th fix - I likely won't have time before then :) |
TypeScript updates often include breaking changes so it's not safe to simply state that TypeDoc supports every TS version above 3.9. |
@Gerrit0 In the short term, could you make |
- i18next: 20.3.1 - testem: 3.4.2 - typescript 4.3.2 は TypeDoc がまだ未対応なので見送り TypeStrong/typedoc#1589
Error when running typedoc with Typescript 4.3. TypeStrong/typedoc#1589
@chharvey doing this would break quite a few users that still use old versions of TS, so I don't really want to do that. I'll consider it if I can't get around to fixing it this coming weekend. |
typedoc does not yet support typescript 4.3 TypeStrong/typedoc#1589
typedoc does not yet support typescript 4.3 TypeStrong/typedoc#1589
This is a temporary measure as Typedoc generation will be broken when we upgrade to TypeScript v4.3 until Typedoc supports this version (should be very soon: TypeStrong/typedoc#1589 (comment)). At that point, we can re-instate this. Change-type: patch Signed-off-by: Graham McCulloch <[email protected]>
I would personally take that risk rather than having the annoyance of having to wait for |
It's just a warning. You can take the risk. As you can see it won't work this time. 😄 |
I'm generally ok with the strict dependencies but maybe the actual need for the strict dependency could be relaxed. I don't know, how the interface between TypeDoc and TypeScript works but i believe that for example eslint abstracts aways the version specific details of language to be linted by using a dedicate abstraction layer. |
Yeah... I just found that too, |
Error when running typedoc with Typescript 4.3. TypeStrong/typedoc#1589
Use typescript 4.2.x. Error when running typedoc with Typescript 4.3. TypeStrong/typedoc#1589
Downgrade typescript version because of typedoc bug. TypeStrong/typedoc#1589
Tested v0.21.0-beta.2 on www.github.com/lensapp/lens and it worked great! |
Error: source/src/sprites/Text.ts:17:18 - error TS2612: Property 'background' will overwrite the base property in 'Container'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
public override background: Sprite; With https://github.com/Ayfri/PIXI-Extended. Configuration here : https://github.com/Ayfri/PIXI-Extended/blob/docs/typedoc.json. |
@Ayfri that's a compiler error you need to fix and not related to TypeDoc, is it? |
No, my code is fine. It's just because |
So the code builds fine, but creating the docs with TypeDoc fails. Is that right? |
Exactly ! |
Could it be that TypeDoc for whatever reason is still using TS 4.2 to compile your project? Looking at your |
It's on the |
Oh, I see. I don't know then. Still looks like a compilation error to me. Maybe you should create a smaller repo to narrow down the issue. |
Maybe it's because I'm using a plugin, here are the complete logs : "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run generate --scripts-prepend-node-path=auto
> pixi-extended-docs@1.0.0 generate
> typedoc --sourcefile-url-map mappings.json
Warning: C:\Users\Pierre\WebstormProjects\pixi\PIXI-utils\node_modules\typedoc-plugin-sourcefile-url uses a deprecated structure. Pl
ugins should export a "load" function to be called with the Application
at Application.bootstrap (C:\Users\Pierre\WebstormProjects\pixi\PIXI-utils\node_modules\typedoc\dist\lib\application.js:156:17)
Info: Loaded plugin C:\Users\Pierre\WebstormProjects\pixi\PIXI-utils\node_modules\typedoc-plugin-sourcefile-url
Error: source/src/sprites/Text.ts:17:18 - error TS2612: Property 'background' will overwrite the base property in 'Container'. If th
is is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
17 public override background: Sprite;
~~~~~~~~~~
Process finished with exit code 3 |
Can you temporarily disable or remove the plugin and try without it? Although I doubt that the plugin is the issue. I think we should move this conversation to a new/separate issue. |
It doesn't fix the issue :/ Maybe yes. |
Using typedoc 0.21.0-beta.2 with typedoc-plugin-markdown 3.9.0. Curious when 0.21.0 can be expected? |
I'm aiming to release it tonight, assuming I have enough time, if not tonight, it should be sometime this week, Friday at the latest. |
(Obviously didn't happen yesterday, or today... 4 things left on todo list - https://github.com/TypeStrong/typedoc/projects/8) |
@Gerrit0 take your time. 👍 |
Depending on the beta works for @lauf/store and @lauf/store-react Thanks! Typedoc retiring support for EOL Node 10 has prompted me to tidy up my test build matrix too! Thanks for all your efforts. |
0.21.0 has been released! |
Working great! Thank you! |
Thank you! |
Thx. Great work 👍 |
Search Terms
TypeScript 4.3
Problem
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"3.9.x || 4.0.x || 4.1.x || 4.2.x" from [email protected]
Suggested Solution
Support TypeScript 4.3
The text was updated successfully, but these errors were encountered: