Skip to content

Could not resolve "@angular/animations/browser" #59050

@davidbusuttil

Description

@davidbusuttil

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

platform-browser

Is this a regression?

Yes

Description

Since @angular/platform-browser@19.0.2, building or running an application/library that hasn't @angular/animations as a dependency results in the an error being thrown.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Build: Could not resolve "@angular/animations/browser"

Serve: Cannot find package '@angular/animations' imported from C:\Users\...\node_modules\@angular\platform-browser\fesm2022\animations.mjs

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

Angular CLI: 19.0.3
Node: 20.18.1
Package Manager: npm 10.9.0
OS: win32 x64

Angular: 19.0.2
... common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic, platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.3
@angular-devkit/build-angular   19.0.3
@angular-devkit/core            19.0.3
@angular-devkit/schematics      19.0.3
@angular/cli                    19.0.3
@angular/fire                   19.0.0-rc.0
@angular/ssr                    19.0.3
@schematics/angular             19.0.3
rxjs                            7.8.1
typescript                      5.6.3
zone.js                         0.15.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimearea: serverIssues related to server-side renderingbugregressionIndicates than the issue relates to something that worked in a previous version

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions