Skip to content

async animations: Cannot set properties of null (setting '@@0:register') #52538

@zip-fa

Description

@zip-fa

Which @angular/* package(s) are the source of the bug?

animations

Is this a regression?

Yes

Description

Hi @JeanMeche.
Async animations' AnimationBuilder throws error, while non-async animations are not.

Please provide a link to a minimal reproduction of the bug

https://github.com/zip-fa/ng17-async-animations-bug

Please provide the exception or error you saw

main.ts:5 ERROR TypeError: Cannot set properties of null (setting '@@0:register')
    at NoneEncapsulationDomRenderer.setProperty (platform-browser.mjs:720:12)
    at DynamicDelegationRenderer.setProperty (async.mjs:177:23)
    at issueAnimationCommand (animations.mjs:1119:12)
    at _BrowserAnimationBuilder.build (animations.mjs:1018:5)
    at _AppComponent.playAnimation (app.component.ts:23:45)
    at set el [as el] (app.component.ts:19:10)
    at AppComponent_Query (app.component.ts:13:26)
    at executeViewQueryFn (core.mjs:13189:9)
    at refreshView (core.mjs:13458:13)
    at detectChangesInView (core.mjs:13628:9)

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.0.0-rc.3
Node: 18.18.1
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.0.0-rc.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.3
@angular-devkit/build-angular   17.0.0-rc.3
@angular-devkit/core            17.0.0-rc.3
@angular-devkit/schematics      17.0.0-rc.3
@angular/cli                    17.0.0-rc.3
@angular/ssr                    17.0.0-rc.3
@schematics/angular             17.0.0-rc.3
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.2

Anything else?

No response

Metadata

Metadata

Assignees

Labels

animations: asyncIssues related to async animation loadingarea: animationslegacy animations package only. Otherwise use area: core.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions