When I run the command to build ionic app: ionic cordova build android --prod --verbose. I get the following error:

Srujan R

When I run the command to build ionic app: ionic cordova build android --prod --verbose. I get the following error:

ERROR in : 'IonInput' is not a known element:

  1. If 'IonInput' is an Angular component, then verify that it is part of this module.

  2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

(">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' is not a known element:

  1. If 'IonButton' is an Angular component, then verify that it is part of this module.
  2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
("  <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): : Expected 0 arguments, but got 1.

[ERROR] An error occurred while running subprocess ng.

Any help is appreciated. Thanks in advance.

eDriven_Levar

You are mixing React Tags with Angular Directives. With your error message, I can safely assume your using Ionic/Angular. Make sure you are following the Angular Documentation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Ionic build Android error when downloading Gradle

is there is any way to build hybrid app (Ionic, AngularJs, Cordova) in android studio

ionic build android throws "Uh oh!" error after updating cordova

Ionic build android --prod cleancss broken @import error

Error in ionic cordova build android --prod

issue with " ionic cordova build android --prod --release"

ionic cordova build android : Error: spawn EACCES

npm run ionic:build --prod giving strange error

I get the following error when running npm build

ionic 3 cli 'ionic cordova run android' command throws an error

Ionic + Cordova Android build error - could not find tools.jar

Cannot build IONIC iOS --prod showing error

ionic cordova run android --prod not working

ionic cordova run android --prod hangs

UnhandledPromiseRejectionWarning when calling ionic cordova build --release android

getting error while ionic app run in mobile device using this command( ionic cordova run android)

when i am setting ionic proxy it works on ionic serve but not working build app run on my device

Ionic Cordova Build prod: Cannot find module “.” - Typescript version >3

Impossible to run ionic build android

ionic build android error

IONIC build PROD

Error while running Cordova build android ionic2

When I try to build app by Android studio , I get the following error that the Gradle tasks connects timeout

Error build app ionic

Ionic cordova bluetooth plugin is not working with - - prod flag build

When i have build ionic app at that time given native Library error. given this below

Ionic Cordova Build Error

Ionic App is crashing after login, when I run build on Android emulator

Ionic 6. App crashes when i make build and not opening