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.

Cannot find module @angular/material

See original GitHub issue

I’m trying to add Angular Material to my application but it first required me to upgrade to Angular5 which was fine. But now it’s not working as it couldn’t find the Material module although I’ve installed it following the getting started tutorial with:

npm install --save @angular/material @angular/cdk

The error I’m getting is literally:

`ERROR in src/app/app.module.ts(6,52): error TS2307: Cannot find module '@angular/material'.`

Which correspond to this import instruction:

import { MatButtonModule, MatCheckboxModule } from '@angular/material';

Is this caused because Angular Material is still an RC version? Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:14

github_iconTop GitHub Comments

14reactions
alexandrebcarusocommented, Feb 26, 2018

restart vscode

9reactions
hayat12commented, May 23, 2018

install the npm install --save @angular/material @angular/cdk in your project directory, as well as the ng add angular/material

it should have to work

Read more comments on GitHub >

github_iconTop Results From Across the Web

can not find module "@angular/material" - Stack Overflow
Follow these steps to begin using Angular Material. Step 1: Install Angular Material npm install --save @angular/material.
Read more >
Cannot find module @angular material or its - CodeDocu.com
Solution: Installation of the Angular module @angular/material. Error in import app.modules.ts (before installation). Angular Error: Cannot ...
Read more >
Cannot find module '@angular/http&#38
Hello, After including MDB Pro into our angular5 project, I am getting an error during a compilation time: `ERROR in ...
Read more >
angular-material - npm
Start using angular-material in your project by running `npm i ... You can find the component source-code for this library in the AngularJS ......
Read more >
Getting started | Angular Material
Some Material components depend on the Angular animations module in order to be able to do more advanced transitions. If you want these...
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