I'm trying to build android app in ionic3

ionic cordova run android --prod --release
ionic-app-scripts build --prod --target cordova --platform android
[12:24:46] ionic-app-scripts 3.2.1
[12:24:46] build prod started …
[12:24:46] clean started …
[12:24:46] clean finished in 3 ms
[12:24:46] copy started …
[12:24:46] deeplinks started …
[12:24:46] deeplinks finished in 21 ms
[12:24:46] ngc started …
[12:24:50] typescript error
Type LinkPage in /Users/angelamal/Documents/osome/src/pages/link/link.ts is part of the declarations of 2
modules: AppModule in /Users/angelamal/Documents/osome/src/app/app.module.ts and LinkPageModule in
/Users/angelamal/Documents/osome/src/pages/link/link.module.ts! Please consider moving LinkPage in
/Users/angelamal/Documents/osome/src/pages/link/link.ts to a higher module that imports AppModule in
/Users/angelamal/Documents/osome/src/app/app.module.ts and LinkPageModule in
/Users/angelamal/Documents/osome/src/pages/link/link.module.ts. You can also create a new NgModule that
exports and includes LinkPage in /Users/angelamal/Documents/osome/src/pages/link/link.ts then import that
NgModule in AppModule in /Users/angelamal/Documents/osome/src/app/app.module.ts and LinkPageModule in
/Users/angelamal/Documents/osome/src/pages/link/link.module.ts.
[12:24:50] ionic-app-script task: “build”
[12:24:50] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --prod --target cordova --platform android exited
with exit code 1.

while i tried to build an android app in ionic 3…

i used this code “ionic cordova build android --prod --release”

but it showing an error