-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Irritating warning when setting missingTranslation in AotPlugin options #9159
Irritating warning when setting missingTranslation in AotPlugin options #9159
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
…gTranslation option validation When using `missingTranslation` in options for AotPlugin constructor the plugin will print a warning when angular (and cli) is already at version 5 or higher.
3dcbc73
to
edae424
Compare
CLAs look good, thanks! |
It shouldn’t be showing the warning. However, AngularCompilerPlugin should be used for Angular 5+. AotPlugin is intended for Angular 2 & 4. |
@clydin you are right. I missed that line in the
Hence, the whole And was it on purpose to keep both versions ( In general it feels strange to have in-code verification for particular version number of peer installed dependencies when there is actually infrastructure for dependency/version management through NPMs |
The package is intended to provide support for Angular 2 through 5 (and eventually beyond). The CLI also supports building Angular 2, 4, and 5 based projects. So both are required. |
@mhoyer no, there isn't any usecase for using At the moment we can't set peer dependencies on I agree we could have some error being thrown in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above.
Closing as the package has been moved to the devkit project and Angular 5 is now the minimum version. |
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. |
When using
missingTranslation
in options forAotPlugin
constructor the plugin will print a confusing warning when angular (and CLI) is already at version 5 or higher:Example in
webpack.config.js
: