@Rudeblory wrote:
When trying to build an application for Android, the following error appears, how to fix it?
C:\Users\rudeb\Documents\Ionic Apps\Bochka>ionic cordova build android > ionic-app-scripts build --target cordova --platform android [19:53:33] ionic-app-scripts 3.2.2 [19:53:34] build dev started ... [19:53:34] clean started ... [19:53:34] clean finished in 29 ms [19:53:34] copy started ... [19:53:34] deeplinks started ... [19:53:34] deeplinks finished in 32 ms [19:53:34] transpile started ... [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page5/page5.ts, line: 5 Individual declarations in merged declaration 'Page5Page' must be all exported or all local. L4: import { Page6Page } from '../page6/page6'; L5: import { Page5Page } from '../page5/page5'; [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page5/page5.ts, line: 5 Import declaration conflicts with local declaration of 'Page5Page'. L4: import { Page6Page } from '../page6/page6'; L5: import { Page5Page } from '../page5/page5'; [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page5/page5.ts, line: 11 Individual declarations in merged declaration 'Page5Page' must be all exported or all local. L11: export class Page5Page { L12: // this tells the tabs component which Pages [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page6/page6.ts, line: 5 Individual declarations in merged declaration 'Page6Page' must be all exported or all local. L4: import { Page2Page } from '../page2/page2'; L5: import { Page6Page } from '../page6/page6'; [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page6/page6.ts, line: 5 Import declaration conflicts with local declaration of 'Page6Page'. L4: import { Page2Page } from '../page2/page2'; L5: import { Page6Page } from '../page6/page6'; [19:53:39] typescript: C:/Users/rudeb/Documents/Ionic Apps/Bochka/src/pages/page6/page6.ts, line: 11 Individual declarations in merged declaration 'Page6Page' must be all exported or all local. L11: export class Page6Page { L12: // this tells the tabs component which Pages [19:53:39] ionic-app-script task: "build" [19:53:39] Error: Failed to transpile program Error: Failed to transpile program at new BuildError (C:\Users\rudeb\Documents\Ionic Apps\Bochka\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28) at C:\Users\rudeb\Documents\Ionic Apps\Bochka\node_modules\@ionic\app-scripts\dist\transpile.js:159:20 at new Promise (<anonymous>) at transpileWorker (C:\Users\rudeb\Documents\Ionic Apps\Bochka\node_modules\@ionic\app-scripts\dist\transpile.js:107:12) at Object.transpile (C:\Users\rudeb\Documents\Ionic Apps\Bochka\node_modules\@ionic\app-scripts\dist\transpile.js:64:12) at C:\Users\rudeb\Documents\Ionic Apps\Bochka\node_modules\@ionic\app-scripts\dist\build.js:109:82 [ERROR] An error occurred while running subprocess ionic-app-scripts. ionic-app-scripts build --target cordova --platform android exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
Posts: 1
Participants: 1