Closed
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using new experimentalplatform neutral with provideAnimationsAsync() in app.config.ts i have on build
Minimal Reproduction
I have a repro here https://github.com/fiste788/tmp-animations-async
Cloning, running npm install and npm run build will give you the error.
If you change to provideAnimations() without async at line
https://github.com/fiste788/tmp-animations-async/blob/562c37a48c9f0c0a52f6ffacbdc5faec25dfe0d5/src/app/app.config.ts#L8
to make the build work.
Exception or Error
TypeError: Class extends value undefined is not a constructor or null
at file:///D:/Projects/Personal/Fantamanajer/test19v2/.angular/prerender-root/a3011629-d592-49a7-91c1-a8b6d1656845/chunk-GFZLE2P2.mjs:34:17047
at file:///D:/Projects/Personal/Fantamanajer/test19v2/.angular/prerender-root/a3011629-d592-49a7-91c1-a8b6d1656845/chunk-GFZLE2P2.mjs:34:17240
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:429:15)
at async extractRoutes (D:\Projects\Personal\Fantamanajer\test19v2\node_modules\@angular\build\src\utils\server-rendering\routes-extractor-worker.js:23:83)
at async D:\Projects\Personal\Fantamanajer\test19v2\node_modules\piscina\dist\worker.js:144:26
Your Environment
Angular CLI: 19.0.1
Node: 18.20.3
Package Manager: bun <error>
OS: linux x64
Angular: 19.0.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1900.1
@angular-devkit/build-angular 19.0.1
@angular-devkit/core 19.0.1
@angular-devkit/schematics 19.0.1
@angular/cli 19.0.1
@angular/ssr 19.0.1
@schematics/angular 19.0.1
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Anything else relevant?
No response