components icon indicating copy to clipboard operation
components copied to clipboard

Cannot find module @angular/material-moment-adapter

Open Hypenate opened this issue 8 years ago • 3 comments

Bug:

An error is thrown on this line: import {MAT_MOMENT_DATE_FORMATS, MomentDateAdapter} from '@angular/material-moment-adapter';

The error is:

Cannot find module '@angular/material-moment-adapter';'

What is the expected behavior?

The module is found

What is the current behavior?

The module is not found

What are the steps to reproduce?

StackBlitz example for the website

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 6.0.7 angular/material: 6.4.2 Typescript: 3.0.1

Is there anything else we should know?

Another question, where is MatMomentDateModule located?

Hypenate avatar Aug 29 '18 12:08 Hypenate

npm i @angular/material-moment-adapter

import { MatMomentDateModule, MomentDateAdapter } from "@angular/material-moment-adapter";

I'm sorry but I guess StackOverflow is better for questions...

rsaenen avatar Aug 29 '18 14:08 rsaenen

And we also need to install moment npm install moment --save

kanadChourasia avatar Sep 06 '19 16:09 kanadChourasia

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.