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

Strict compile support #54

Open
yzdedream opened this issue Jul 3, 2017 · 4 comments
Open

Strict compile support #54

yzdedream opened this issue Jul 3, 2017 · 4 comments

Comments

@yzdedream
Copy link

support for
"compilerOptions": {
"strict": true,
}
in tsconfig.json

@jkuri
Copy link
Owner

jkuri commented Jul 3, 2017

what are the errors?

@yzdedream
Copy link
Author

  
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (29,5): Type 'HTMLBodyElement | null' is not assignable to type 'HTMLElement'.
  Type 'null' is not assignable to type 'HTMLElement'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (76,54): Argument of type 'string | null' is not assignable to parameter of type 'string'.
  Type 'null' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (80,5): Object is possibly 'null'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (91,41): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (94,55): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (95,52): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (100,51): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (112,40): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (114,54): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (115,51): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (120,50): Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (179,24): Argument of type 'string | null' is not assignable to parameter of type 'string'.
  Type 'null' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (185,30): Argument of type 'string | null' is not assignable to parameter of type 'string'.
  Type 'null' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (197,31): Argument of type 'string | null' is not assignable to parameter of type 'string'.
  Type 'null' is not assignable to type 'string'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (226,7): Type 'null' is not assignable to type 'MutationObserver'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (229,9): Object is possibly 'null'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (232,27): Argument of type 'Element | null' is not assignable to parameter of type 'Node'.
  Type 'null' is not assignable to type 'Node'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (233,19): Argument of type 'HTMLElement | null' is not assignable to parameter of type 'HTMLElement'.
  Type 'null' is not assignable to type 'HTMLElement'.
 
ERROR in node_modules/ng2-slimscroll/src/directives/slimscroll.directive.ts (243,5): Object is possibly 'null'.
 
 
 

@yzdedream
Copy link
Author

Got this as dependency of 'ng2-datepicker'

@jkuri
Copy link
Owner

jkuri commented Jul 3, 2017

wow thats alot of errors.

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

2 participants