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

TS6133 error when "noUnusedLocals": true #50

Open
davyvanlaere opened this issue Mar 4, 2018 · 0 comments
Open

TS6133 error when "noUnusedLocals": true #50

davyvanlaere opened this issue Mar 4, 2018 · 0 comments

Comments

@davyvanlaere
Copy link
Contributor

davyvanlaere commented Mar 4, 2018

When including version 1.3.0 in a project where "noUnusedLocals" in the tsconfig file is set to true:

ERROR in node_modules/angular2-lightbox/src/lightbox-overlay.component.ts(27,11): error TS6133: '_classList' is declared but its value is never read.

My suggestion:

  • use @HostBinding('class') on the _classList field.
  • remove it from the 'host' section of the @component annotation
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