You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in node_modules/angular2-color-picker/node_modules/rxjs/Subject.d.ts(24,5): error TS2416: Property 'lift' in type 'Subject' is not assignable to the same property in base type 'Observable'.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
The text was updated successfully, but these errors were encountered:
I'm Angular5using the current dependencies on top of the above problems also exist. I downloaded the source code and made the following small modifications to run.
Solution:
Find the color-picker.directive.ts file
Modify the injector const injector = ReflectiveInjector.fromResolvedProviders([], this.vcRef.parentInjector); to const injector = Injector.create([], this.vcRef.parentInjector);
3. Use, if you put color-pickerinto shareModule, needs to be handled as follows:
ERROR in node_modules/angular2-color-picker/node_modules/rxjs/Subject.d.ts(24,5): error TS2416: Property 'lift' in type 'Subject' is not assignable to the same property in base type 'Observable'.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
The text was updated successfully, but these errors were encountered: