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

来源:2-5 Input 组件

魏铭轩

2017-09-04

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回答

dds813

2017-09-22

SharedModule中是否有导入导出MdInputModule

0
0

接灰的电子产品

2017-09-04

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

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


0
2
接灰的电子产品
回复
dds813
cdk 是 beta.8加入的,你要是用beta.8就保留
2017-09-22
共2条回复

魏铭轩

提问者

2017-09-04

SharedModule中导入MdInputModule


0
0

Angular打造企业级协作平台,让你在Angular领域中出类拔萃

全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用

998 学习 · 536 问题

查看课程