Skip to content

typescript declarations for locales gone? #63028

@Segdo

Description

@Segdo

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

common

Is this a regression?

Yes

Description

I just tried updating from angular 20.1.4 to 20.1.5 but the app does not compile anymore because the type declaration files in @angular/common/locales seem to be gone. You can also see this on npm directly that there are no typescript files in the locales folder anymore.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Could not find a declaration file for module '@angular/common/locales/en'. 'xxx/node_modules/@angular/common/locales/en.js' implicitly has an 'any' type. If the '@angular/common' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@angular/common/locales/en';` ts(7016)

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

Angular CLI: 20.1.4
Node: 20.19.2
Package Manager: npm 11.2.0
OS: win32 x64

Angular: 20.1.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2001.4
@angular-devkit/core         20.1.4
@angular-devkit/schematics   20.1.4
@angular/build               20.1.4
@angular/cdk                 20.1.4
@angular/cli                 20.1.4
@angular/material            20.1.4
@schematics/angular          20.1.4
rxjs                         7.8.2
typescript                   5.8.3
zone.js                      0.15.1

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: i18nIssues related to localization and internationalizationarea: packagingIssues related to Angular's creation of npm packagesregressionIndicates 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