When I run the command to build ionic app: ionic cordova build android --prod --verbose. I get the following error:
When I run the command to build ionic app: ionic cordova build android --prod --verbose. I get the following error:
当我运行构建离子应用程序的命令时:ionic cordova build android --prod --verbose。
我收到以下错误:
错误:'IonInput' 不是已知元素:
如果 'IonInput' 是一个 Angular 组件,则验证它是该模块的一部分。
要允许任何元素添加 'NO_ERRORS_SCHEMA' 到此组件的“@NgModule.schemas”。
(">Please enter the ip address of the server running machine</h3>
<h2>Example 192.168.0.118 </h2>
[ERROR ->]<IonInput value="custom" [(ngModel)]="ip_address"></IonInput>
<IonButton (click)="ipSave()" color="")
: 'IonButton' 不是已知元素:
- 如果 'IonButton' 是一个 Angular 组件,则验证它是该模块的一部分。
- 要允许任何元素将 'NO_ERRORS_SCHEMA' 添加到此组件的“@NgModule.schemas”。
(" <h2>Example 192.168.0.118 </h2>
<IonInput value="custom" [(ngModel)]="ip_address"></IonInput>
[ERROR ->]<IonButton (click)="ipSave()" color="primary">Save</IonButton>
</ion-content>
")
src/app/layout/touring/touring.page.html(8,18): : 预期有 0 个参数,但得到 1 个。
[错误]运行宁子进程 ng.
时发生错误
感谢任何帮助。
提前致谢。
您将 React 标签与 Angular 指令混合在一起。根据您的错误消息,我可以放心地假设您使用的是 Ionic/Angular。确保您遵循 Angular 文档。
当我运行构建离子应用程序的命令时:ionic cordova build android --prod --verbose。 我收到以下错误:
错误:'IonInput' 不是已知元素:
如果 'IonInput' 是一个 Angular 组件,则验证它是该模块的一部分。
要允许任何元素添加 'NO_ERRORS_SCHEMA' 到此组件的“@NgModule.schemas”。
(">Please enter the ip address of the server running machine</h3>
<h2>Example 192.168.0.118 </h2>
[ERROR ->]<IonInput value="custom" [(ngModel)]="ip_address"></IonInput>
<IonButton (click)="ipSave()" color="")
: 'IonButton' 不是已知元素:
- 如果 'IonButton' 是一个 Angular 组件,则验证它是该模块的一部分。
- 要允许任何元素将 'NO_ERRORS_SCHEMA' 添加到此组件的“@NgModule.schemas”。
(" <h2>Example 192.168.0.118 </h2>
<IonInput value="custom" [(ngModel)]="ip_address"></IonInput>
[ERROR ->]<IonButton (click)="ipSave()" color="primary">Save</IonButton>
</ion-content>
")
src/app/layout/touring/touring.page.html(8,18): : 预期有 0 个参数,但得到 1 个。
[错误]运行宁子进程 ng.
时发生错误感谢任何帮助。 提前致谢。
您将 React 标签与 Angular 指令混合在一起。根据您的错误消息,我可以放心地假设您使用的是 Ionic/Angular。确保您遵循 Angular 文档。