Visitar URL original
fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list by vkarpov15 · Pull Request #22550 · angular/angular-cli · GitHub
The Wayback Machine - https://web.archive.org/web/20260624113157/https://github.com/angular/angular-cli/pull/22550
Skip to content

fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list#22550

Closed
vkarpov15 wants to merge 1 commit into
angular:masterfrom
vkarpov15:patch-1
Closed

fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list#22550
vkarpov15 wants to merge 1 commit into
angular:masterfrom
vkarpov15:patch-1

Conversation

@vkarpov15

Copy link
Copy Markdown

Similar to #21739, whatwg-url seems to suffer from the same issue as #21735 . Pulling in whatwg-url results in the below error:

/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:57981
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf( /*#__PURE__*/_wrapAsyncGenerator(function* () {})).prototype);
                                      ^

TypeError: Cannot convert undefined or null to object
    at Function.getPrototypeOf (<anonymous>)
    at Object.30363 (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:57981:39)
    at __webpack_require__ (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:264171:42)
    at Object.62950 (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:55286:15)
    at __webpack_require__ (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:264171:42)
    at Object.1509 (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:58153:13)
    at __webpack_require__ (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:264171:42)
    at Object.97775 (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:54974:34)
    at __webpack_require__ (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:264171:42)
    at Object.34843 (/home/val/Workspace/MongoDB/troubleshoot-mongoose/angular-tour-of-heroes/dist/angular-tour-of-heroes/server/main.js:54688:22)

Re: Automattic/mongoose#11155

If you npm install whatwg-url@11, you'll see the below code that breaks when Angular "downlevels" it. Not sure where this code comes from, it isn't in the whatwg-url repo.

const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);

@alan-agius4

alan-agius4 commented Jan 24, 2022 •

Copy link
Copy Markdown
Collaborator

Thanks for this.

can you please sign the CLA and fix the formatting issues using the below command

yarn ng-dev format files packages/angular_devkit/build_angular/src/webpack/configs/common.ts

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release labels Jan 25, 2022
@alan-agius4

Copy link
Copy Markdown
Collaborator

Closing in favor of #22629 since CLA was not signed.

@alan-agius4 alan-agius4 closed this Feb 1, 2022
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants