Support for Angular Material 9
See original GitHub issueHi.
Trying to compile with Angular Material 9 (exactly 9.0.0-rc.7
), I get errors looking like this :
import { CanUpdateErrorStateCtor, ErrorStateMatcher } from '@angular/material';
~~~~~~~~~~~~~~~~~~~
../node_modules/ngx-material-file-input/lib/file-input/file-input.component.d.ts:3:35
error TS2306: File '(...)/node_modules/@angular/material/index.d.ts' is not a module.
It seems related to the fact that from version 9, Angular Material does not export all its classes in index.d.ts
anymore, and one has to import them from deeper paths, for ex:
import { ErrorStateMatcher } from "@angular/material/core"
It’s hopefully not such a big deal to update, maybe you have plans for this ?
Thank you, the file input is great by the way ! Mathias
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:17 (3 by maintainers)
Top Results From Across the Web
@angular/material - npm
Angular Material. Latest version: 15.0.3, last published: 13 days ago. Start using @angular/material in your project by running `npm i ...
Read more >Getting started - Angular Material
This guide explains how to set up your Angular project to begin using Angular Material. It includes information on prerequisites, installing Angular ...
Read more >Angular Material 9|8 Datepicker Tutorial with Examples
Angular Material is a UI library which provides several useful and Angular compatible UI components. Material's latest version 9 can be easily ...
Read more >Angular CLI 7 installed angular material 9 - Stack Overflow
Can anyone please help. why angular cli 7 has installed 9 material , i could not understand. angular · typescript.
Read more >How To Update Angular CLI To Latest Version
If you are using Angular material You have to update it as well ... with dependency @angular/language-service @ "10.0.0" (was "9.0.0").
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all! I’m a bit busy for now, i will try to make a new release during the weekend 😃 thanks @matcho for the PR and everyboby for the reviews!
Hi folks! the new version 2.1.0 compatible with angular 9 is out.