-
Notifications
You must be signed in to change notification settings - Fork 12k
@angular-devkit/build-angular update from 12.1.x to 12.2.x SSR fails to serve #21735
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
Comments
The problem appear to be this statement. const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf( /*#__PURE__*/_wrapAsyncGenerator(function* () {})).prototype); Which is the result of transforming native async/await in generators since Zone.Js cannot patch these. export const AsyncIteratorPrototype: AsyncIterable<any> | undefined =
Object.getPrototypeOf(Object.getPrototypeOf(async function* (): AsyncIterableIterator<any> {}).prototype); |
Looking at this more, the downlevelling of the async/await is doing the right thing and the correct output is being generated. Unfortunately, This should be pretty straightforward from their end to fix; const AsyncFnPrototype = Object.getPrototypeOf(async function* () {}).prototype;
const AsyncIteratorPrototype = AsyncFnPrototype && Object.getPrototypeOf(AsyncFnPrototype); |
Closing as per above. |
Hey @alan-agius4, are you folks going to fix this for v12? It seems to be still broken with the latest |
@krzkz94, it looks like the commit was not cherry-picked due to a conflict. We should be addressing this in the next patch release. |
Can confirm its fixed in |
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
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 12.1.4
Description
When building a SSR application, and serving the SSR application, it used to work, but after the update, an error is logged during the process.
🔬 Minimal Reproduction
https://github.com/rickvandermey/angular-starterkit/tree/feature/update-deps
Steps:
npm ci
npm run start:ssr
🌍 Your Environment
The text was updated successfully, but these errors were encountered: