我是角度和离子的新手.我正在使用
"@ angular/forms":"^ 4.3.1""ionic-angular":"^ 3.5.3"
我已经安装了ionic-angular和@ angular/forms包.我收到以下错误消息.
Unhandled Promise rejection: Template parse errors:
'ion-card-header' is not a known element:
1. If 'ion-card-header' is an Angular component, then verify that it is part of this module.
2. If 'ion-card-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
<ion-card>
[ERROR ->]<ion-card-header>
Header
</ion-card-header>
Run Code Online (Sandbox Code Playgroud)
任何想法如何修复将非常感激.
我已经把它放入了,它也开始抱怨.请看下面的图片.
$ ionic info
[WARN] You are not in an Ionic project directory. Project context may be …Run Code Online (Sandbox Code Playgroud) 收到以下错误。不知道该怎么办。导入组件库之一并尝试将其使用到我的离子项目中。
库正在使用 Angular 4、Ionic 3。