Skip to content

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

Closed

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

Activity

  1. self-assigned this
    on Nov 6, 2023
  2. added
    area: animations
    animations: async
    on Nov 7, 2023
  3. modified the milestone: needsTriage on Nov 7, 2023
  4. added a commit that references this issue on Nov 13, 2023
    f5872c9
  5. angular-automatic-lock-bot commented on Dec 14, 2023

    @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 14, 2023
  7. added a commit that references this issue on Jan 23, 2024
    02aee8d
  8. added 2 commits that reference this issue on Jan 26, 2024
    5ee11a7
    08994ec
  9. added a commit that references this issue on Jan 26, 2024
    a456b22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

animations: asyncarea: animations

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions