Skip to content
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

Update zone.js #18093

Merged
merged 2 commits into from
Jan 15, 2022
Merged

Update zone.js #18093

merged 2 commits into from
Jan 15, 2022

Conversation

Charles-Gagnon
Copy link
Contributor

Fixes #18084
Fixes #18047

The core issue here is that older versions of zone.js don't support the newer Node runtimes (see stephanrauh/ngx-extended-pdf-viewer#263 for a similar issue) that introduced things like Promise.allSettled.

In order to fix that we need to update to zone.js 10+, but this needed additional work since zone.js moved to support UMD in the newer versions which causes the Can only have one anonymous define call per script file we've seen with other modules. (documented here)

This one was a bit different than the previous ones though since we were loading it directly using the Node require, so adding it to the list of amd modules didn't work (that path wasn't hit for native node module loading). I tried to get it to work with using import instead to force it through the VS Code/ADS normal module load path but was hitting other issues with then getting window.Zone to be defined correctly. So instead we just temporarily set amd to false so that zone.js loads as commonjs instead and then set it back right after. Not ideal but this was one of the things suggested by the VS Code dev I was talking to so should be safe enough for a (hopefully) one-off thing.

@coveralls
Copy link

coveralls commented Jan 14, 2022

Pull Request Test Coverage Report for Build 1699876689

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 48.276%

Totals Coverage Status
Change from base Build 1699554415: 0.0%
Covered Lines: 14748
Relevant Lines: 29008

💛 - Coveralls

@Charles-Gagnon Charles-Gagnon merged commit d213e4d into main Jan 15, 2022
@Charles-Gagnon Charles-Gagnon deleted the chgagnon/updateZonejs branch January 15, 2022 00:59
zijchen pushed a commit that referenced this pull request Jan 26, 2022
* Update zone.js

* Update remote too
zijchen pushed a commit that referenced this pull request Feb 4, 2022
* Update zone.js

* Update remote too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't save query Cannot save a new notebook
3 participants