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 Material 9

See original GitHub issue

Hi.

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:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
merlosycommented, Feb 9, 2020

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!

10reactions
merlosycommented, Feb 16, 2020

Hi folks! the new version 2.1.0 compatible with angular 9 is out.

Read more comments on GitHub >

github_iconTop 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 >

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