New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing types field for @angular/common/locales of exports in package.json #52011
Labels
Milestone
Comments
sdedieu
added a commit
to sdedieu/angular
that referenced
this issue
Oct 6, 2023
…xports in package.json Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011
Closed
14 tasks
alan-agius4
pushed a commit
to sdedieu/angular
that referenced
this issue
Oct 6, 2023
…xports in package.json Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011
sdedieu
added a commit
to sdedieu/angular
that referenced
this issue
Oct 7, 2023
…xports in package.json Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011
sdedieu
added a commit
to sdedieu/angular
that referenced
this issue
Oct 7, 2023
…xports in package.json Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011
alan-agius4
pushed a commit
to sdedieu/angular
that referenced
this issue
Oct 10, 2023
…xports in package.json Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ChellappanRajan
pushed a commit
to ChellappanRajan/angular
that referenced
this issue
Jan 23, 2024
…xports in package.json (angular#52080) Add a types entry in the packages/common/package.json exports "./locales/*" section Fixes angular#52011 PR Close angular#52080
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Which @angular/* package(s) are the source of the bug?
common
Is this a regression?
No
Description
for now the
package.json
of@angular/common
looks like below./node_modules/@angular/common/package.json
./src/app/app.module.ts
and when I change the
moduleResolution
tobundler
intsconfig.json
there will be an error calledCould not find a declaration file for module '@angular/common/locales/zh-Hans'
since the lack of atypes
field in theexports
for./locales/*
when I manually update thepackage.json
like below the error has goneand finally I update the import statement to
import localeData from '../../node_modules/@angular/common/locales/zh-Hans';
as a workaround without touching the file of./node_modules/@angular/common/package.json
the
types
field should be added to theexports
of"./locales/*"
inpackage.json
of the@angular/common
packagePlease provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: