question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Angular 6 + RXJS 6

See original GitHub issue

Having issues using Angular 6. The first being RXJS imports being different, which is able to be avoided by importing the rxjs-compat package.

The second issue when using ng6 is the following:

ERROR in node_modules/ngx-material-file-input/src/file-input/file-input.component.d.ts(7,22): error TS2720: Class 'FileInputComponent' incorrectly implements class 'MatFormFieldControl<FileInput>'. Did you mean to extend 'MatFormFieldControl<FileInput>' and inherit its members as a subclass?
  Property 'shouldLabelFloat' is missing in type 'FileInputComponent'.

Seems a new property was added in MatFormFieldControl that needs to be implemented within FileInputComponent.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
merlosycommented, Jul 4, 2018

Migration done! For version with angular 6 -> see 0.2.0

2reactions
jarrocommented, May 22, 2018

can get it working by manually for now by making the following change before compile.

edit: node_modules/ngx-material-file-input/src/file-input/file-input.component.d.ts

add shouldLabelFloat: boolean;

so it looks something like like.

export declare class FileInputComponent implements MatFormFieldControl<FileInput>, ControlValueAccessor, OnInit, OnDestroy {
    shouldLabelFloat: boolean;
    ngControl: NgControl;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6: Upgrading API calls to RxJS 6
Don't panic! There is a library called 'rxjs-compat' which provides shims for backwards compatibility. So your RxJS 5.x API calls and Observable ...
Read more >
Angular 6 Upgrade: Migrating to RxJS 6
If you are upgrading your Angular 4|5 project to Angular 6 which makes use of RxJS 6 you may be worried about the...
Read more >
Angular 5 to 6 Without Backward Compatible RxJS ...
I'm involved in the rather arduous task of migrating a project from Angular 5.2.11 to 6.0.0, and I'm having some difficulty with RxJS...
Read more >
Support Angular 6: Upgrade to RxJS 6 - dbfannin/ngx-logger
@MickL, We have a PR to upgrade the logger angular6. Since it's still in release candidate, we're waiting for the actual 6 release...
Read more >
The RxJS library
RxJS provides an implementation of the Observable type, which is needed until the type becomes part of the language and until browsers support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found