-
Notifications
You must be signed in to change notification settings - Fork 295
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
False Positive: "ElementRef" and "Renderer2" are imported from external module "@angular/core" but never used #2056
Comments
What's the reason of using |
Hey @alan-agius4 I'm currently working on the upgrade of our framework (NationalBankBelgium/stark) from NG7 to NG12. When jumping from ng7 to ng8, I didn't see any information regarding build(docs-infra): update docs examples to Angular v11.2.10 (#41689)
This commit updates the docs examples to Angular v11.2.10. See the [diff between 11.0.1 and 11.2.10 (FW) and 11.2.9 (CLI)][1].
The changes are fairly trivial including:
- Removal of `emitDecoratorMetadata` from tsconfig.json files, where no JIT compilation is required.
- Setting `enableI18nLegacyMessageIdFormat` to `false` for CLI based applications - the i18n example was already migrated away from legacy message IDs. Would you have more information about this change? 😊 |
|
…* packages in order to solve build warnings See ng-packagr/ng-packagr#2056 for more details
This issue has been automatically locked due to inactivity. |
Relates to #710
Type of Issue
Description
A warning is logged if using
Renderer2
orElementRef
in the constructor of a component.See the full log:
How To Reproduce
Clone repository https://github.com/SuperITMan/demo-ng-packagr-warning-import then run
npm run build
.According to the following comment:
To remove the issue, disable
emitDecoratorMetadata
in tsconfig.json file.Expected Behaviour
Not having any warning.
Version Information
Please include all version numbers that might be relevant, e.g. third-party libraries
The text was updated successfully, but these errors were encountered: