[BUG] Node > 16.17.1: Method Promise.prototype.then called on incompatible receiver

This issue has been tracked since 2023-01-11.

Please provide the environment you discovered this bug in.

node: v16.18.0 and higher

Which area/package is the issue in?

astro-angular

Description

I'm receiving an error when I start the sample from https://analogjs.org/docs/packages/astro-angular/overview. At the moment I connect angular into the astro application, it crashes upon requesting the page through the browser.

It might be related to angular/angular#47872, but as the fix there is implemented through @nguniversal/builders I doubt it will fix the issue for @analogjs/astro-angular.

Please provide the exception or error you saw

error   Method Promise.prototype.then called on incompatible receiver [object Object]
TypeError: Method Promise.prototype.then called on incompatible receiver [object Object]
    at ZoneAwarePromise.then (<anonymous>)
    at node:internal/per_context/primordials:440:35
    at new Promise (<anonymous>)
    at new SafePromise (node:internal/per_context/primordials:408:29)
    at node:internal/per_context/primordials:440:9
    at Array.map (<anonymous>)
    at arrayToSafePromiseIterable (node:internal/per_context/primordials:437:5)
    at node:internal/per_context/primordials:453:21
    at new Promise (<anonymous>)
    at primordials.SafePromiseAll (node:internal/per_context/primordials:452:3)

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
brandonroberts wrote this answer on 2023-01-11

Thanks @mwienk. I've seen this issue also and still investigating a proper fix/workaround

brandonroberts wrote this answer on 2023-01-25

I've had success with node versions 16.17.x and18.13.0

More Details About Repo
Owner Name analogjs
Repo Name analog
Full Name analogjs/analog
Language TypeScript
Created Date 2022-07-06
Updated Date 2023-03-28
Star Count 885
Watcher Count 18
Fork Count 67
Issue Count 33

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date