Skip to content

ng add @angular/localize does not support schematics #16028

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

Closed
filipesilva opened this issue Nov 1, 2019 · 2 comments
Closed

ng add @angular/localize does not support schematics #16028

filipesilva opened this issue Nov 1, 2019 · 2 comments

Comments

@filipesilva
Copy link
Contributor

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/[email protected] | 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 <[email protected]>

dist-tags:
latest: 9.0.0-next.5
next: 9.0.0-rc.0
@filipesilva
Copy link
Contributor Author

Localize is now up to date.

kamik@RED-X1C6 MINGW64 /d/sandbox
$ npm info @angular/localize dist-tags
{ next: '9.0.0-rc.0', latest: '9.0.0-rc.0' }

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant