Skip to content
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

'EventEmitter' and 'DefaultLangChangeEvent' is declared but its value is never read. #1463

Open
laurentvandelle opened this issue Dec 21, 2023 · 0 comments

Comments

@laurentvandelle
Copy link

Current behavior

While building the app with ng run <APP_NAME>:server:local there is 2 errors

ERROR in node_modules/@ngx-translate/core/lib/translate.pipe.ts
1:27-39
[tsl] ERROR in node_modules/@ngx-translate/core/lib/translate.pipe.ts(1,28)
      TS6133: 'EventEmitter' is declared but its value is never read.

ERROR in node_modules/@ngx-translate/core/lib/translate.pipe.ts
3:8-30
[tsl] ERROR in node_modules/@ngx-translate/core/lib/translate.pipe.ts(3,9)
      TS6133: 'DefaultLangChangeEvent' is declared but its value is never read.

Expected behavior

I have no error the code builds

How do you think that we should fix this?

Simply remove unused imports in translate.pipe.ts

Minimal reproduction of the problem with instructions

  1. run ng build --configuration local
  2. run ng run <APP_NAME>:server:local
  3. You have 2 errors

Environment

ngx-translate version/core: ^15.0.0
ngx-translate version/http-loader: ^8.0.0
Angular version: ~16.2.12

For Tooling issues:

  • Node version: 16.20.1
  • Npm version : 9.8.1
  • Platform: Mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant