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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
The global
variable in Zone.js not compatible with the one in @types/node
#37531
Comments
Close angular#37531 Remove `global` declaration in zone.ts to avoid compile error when upgrade to `@types/node`.
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v14.0.5. Since the new type of global become `Global` and not compatible with `zone.ts` declaration.
Hello guys, is there any update on this, I can see a PR is opened. Can we expect this to be fixed and released any time soon? |
Hello guys, any update on this? I have exactly the same problem. |
I'll subscribe to the thread |
Now the new version is under review, so please wait for some more days, thanks. |
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v14.0.5. Since the new type of global become `Global` and not compatible with `zone.ts` declaration.
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v14.0.5. Since the new type of global become `Global` and not compatible with `zone.ts` declaration.
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v14.0.5. Since the new type of global become `Global` and not compatible with `zone.ts` declaration.
Any news on this one? :) |
In my case adding "es2018" to tsconfig.base.json libs section helped |
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v14.0.5. Since the new type of global become `Global` and not compatible with `zone.ts` declaration.
This issue need to be resolved after updating the |
This affects also for example node 12.12.61. So i guess you should not make it only compliant with v14. We have had to skip already several version updates to the @types/node 12 line from 21 May onwards. So is there a way we could fix this soon(ish) @JiaLiPassion? |
@Zeetah, I don't think this can be resolved easily unless |
Upgrading zone.js to 0.11.1 helps. |
Close angular#37531 Remove `global` declaration in `zone.ts` to avoid compile error when upgrade to `@types/node` v12.12.68. Since the new type of global become `NodeJS.global & typeof globalThis` and not compatible with `zone.ts` declaration.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
he issue is caused by package zone.js
Is this a regression?
No.
Description
In DefinitelyTyped/DefinitelyTyped#44700, the type definition of the
global
variable was updated toNodeJS.Global & typeof globalThis
. Which makes the Zone.js package not compatible with @types/node 14.0.5 or up.This issue was reported in DefinitelyTyped/DefinitelyTyped#45116.
馃敩 Minimal Reproduction
馃敟 Exception or Error
馃實 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: