Closed
Description
This issue impacts 9.0.0-rc.0 and happened while updating https://github.com/SAP/cloud-commerce-spartacus-storefront.
After updating to version 9, projects that use i18n or whose third party libraries use i18n will receive a runtime error instructing users to run ng add @angular/localize
. Running this command shows the following error:
kamik@RED-X1C6 MINGW64 /d/sandbox/cloud-commerce-spartacus-storefront (update-9)
$ ng add @angular/localize
Installing packages for tooling via yarn.
... lots of spam, see https://github.com/angular/angular-cli/issues/16027
Installed packages for tooling via yarn.
The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support.
This happens because the latest version of @angular/localize
is 9.0.0-next.5, which doesn't have the add
schematics (cc @kara). The latest tag should be updated to rc.0.
kamik@RED-X1C6 MINGW64 /d/sandbox
$ npm info @angular/localize
@angular/localize@9.0.0-next.5 | MIT | deps: none | versions: 12
Angular - library for localizing messages
https://github.com/angular/angular#readme
dist
.tarball: https://registry.npmjs.org/@angular/localize/-/localize-9.0.0-next.5.tgz
.shasum: 00656e45b10a81196e3654c9a25352860e0f6f24
.integrity: sha512-6aRq3ne2Z9Wh70S3Bmxs1pUxeWS6YPlisrmW2vfPUe5WrOpkgT3kOPgLM/gVFGdq4es58vEAiLcY2PO3W41Sgg==
.unpackedSize: 199.8 kB
maintainers:
- angular <devops+npm@angular.io>
dist-tags:
latest: 9.0.0-next.5
next: 9.0.0-rc.0