I need both Material and Material-Moment-Adapter to change date format in datepicker controls. I install moment using:
npm install moment --save
and Material-Moment-Adapter:
npm i @angular/material-moment-adapter
after installation I see following error:
Error: The target entry-point "@angular/material-moment-adapter" has missing dependencies:
but I have installed Moment before, so I try installing Moment again but it removes Material-Moment-Adapter from my Angular project.
SOLVED
Installing two things in one npm install comand
npm i moment @angular/material-moment-adapter
Just run this command using npm for installing @angular/material-moment-adapter
:
npm i @angular/material-moment-adapter
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.