Skip to content

Error using experimentalPlatform neutral with provideAnimationsAsync #28941

Closed

Description

@fiste788

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

Activity

  1. self-assigned this
    on Nov 24, 2024
  2. added
    needs: investigation
    freq1: low
    and removed
    needs: investigation
    on Nov 24, 2024
  3. added 4 commits that reference this issue on Nov 25, 2024
    4323636
    2c41d48
    ed26df5
    8d235bd
  4. added 2 commits that reference this issue on Nov 25, 2024
    f9da163
    8f9fc59
  5. angular-automatic-lock-bot commented on Dec 26, 2024

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

angular/build:applicationarea: @angular/buildfreq1: lowseverity3: brokentype: bug/fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions