question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The `global` variable in Zone.js not compatible with the one in @types/node

See original GitHub issue

🐞 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 to NodeJS.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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
tachojelevcommented, Jul 9, 2020

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?

2reactions
danlzcommented, Sep 25, 2020

Upgrading zone.js to 0.11.1 helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build since upgrading from Angular 9.17 to 9.19
ERROR in node_modules/@types/node/ts3.5/globals.global.d.ts:1:13 - error TS2403: Subsequent variable declarations must have the same type.
Read more >
Storing Data in Node-Red Variables
Learn how to store data in node-red context,flow and global variables. Also how to store this data on disk so as to be...
Read more >
Angular 9 Migration Issue Declare Var Global - ADocLib
of the global variable was updated to NodeJS.Global & typeof globalThis. Which makes the Zone.js package not compatible with @types/node 14.0.5 or up....
Read more >
Global Variables - GameMaker Manual
A basic description of a global variable is one that, once declared, it belongs to no instance in particular and yet can be...
Read more >
How do JavaScript's global variables really work? - 2ality
The global object contains all built-in global variables. The global environment #. The global scope is the β€œoutermost” scope – it has no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found