请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Uncaught Error: Template parse errors: 'md-input-container' is not a known

Uncaught Error: Template parse errors:

'md-input-container' is not a known element:

1. If 'md-input-container' is an Angular component, then verify that it is part of this module.

2. If 'md-input-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 


正在回答 回答被采纳积分+3

3回答

dds813 2017-09-22 21:25:45

SharedModule中是否有导入导出MdInputModule

0 回复 有任何疑惑可以回复我~
接灰的电子产品 2017-09-04 18:48:51

你安装版本不对,执行以下步骤

npm uninstall --save @angular/material @angular/cdk
npm install --save @angular/material@2.0.0-beta.7


0 回复 有任何疑惑可以回复我~
  • dds813 #1
    为什么要卸载cdk
    回复 有任何疑惑可以回复我~ 2017-09-22 21:26:16
  • cdk 是 beta.8加入的,你要是用beta.8就保留
    回复 有任何疑惑可以回复我~ 2017-09-22 21:30:20
提问者 魏铭轩 2017-09-04 18:04:11

SharedModule中导入MdInputModule


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号