Hi,
I am not working with ionic often and made an App for a friend of mine. first in v1 and after a year ran into v2 and had to start from scratch. Now want to do another update and see that is now v3 and cloud no longer exists. So started the migrate plan but I run into problems.
If I run ionic serve my App runs fine. But when I push it to master the build fails. Here is the build log:
Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on ip-10-2-180-113 (c9648220)
Using Shell executor…
Running on ip-10-2-180-113…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/c9648220/0/project-1’…
Checking out d8f1e917 as master…
Skipping Git submodules setup
$ run "fetch-updates"
Running Stage fetch-updates for Job: 5364108
Checking for build process updates…
$ run "build-app"
Running Stage build-app for Job: 5364108
Parsing ionic.config.json for project settings
Project Settings:
Name: DriveBidder
App ID: 2566fa5a
Type: ionic-angular
Build script detected in package.json…
$ npm install --quiet --no-optional
npm WARN deprecated cordova-plugin-console@1.1.0: This plugin has been deprecated since it is now included in the latest versions of cordova-ios
npm WARN deprecated babili@0.1.2: babili has been renamed to babel-minify. Please update to babel-minify
npm WARN deprecated babel-preset-babili@0.1.4: babili has been renamed to babel-minify. Please update to babel-preset-minify
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
node-sass@4.5.3 install /usr/src/app/node_modules/node-sass
node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.5.3/linux-x64-57_binding.node
uglifyjs-webpack-plugin@0.4.6 postinstall /usr/src/app/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js
node-sass@4.5.3 postinstall /usr/src/app/node_modules/node-sass
node scripts/build.js
Binary found at /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
npm WARN @ionic-native/camera@4.5.3 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/geolocation@4.5.3 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN @ionic-native/sqlite@4.5.3 requires a peer of @ionic-native/core@^4.2.0 but none was installed.
npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none was installed.
added 1060 packages in 32.179s
$ npm install --quiet --no-optional success
$ npm run build
npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm info lifecycle DriveBidder@0.0.5~prebuild: DriveBidder@0.0.5
npm info lifecycle DriveBidder@0.0.5~build: DriveBidder@0.0.5
DriveBidder@0.0.5 build /usr/src/app
ionic-app-scripts build
[18:21:38] ionic-app-scripts 2.1.3
[18:21:38] build dev started …
[18:21:38] clean started …
[18:21:38] clean finished in 1 ms
[18:21:38] copy started …
[18:21:38] transpile started …
[18:21:41] typescript: src/app/app.component.ts, line: 5
Cannot find module ‘…/providers/singleton/singleton’.
L4: import { SplashScreen } from '@ionic-native/splash-screen';
[18:21:41] typescript: src/app/app.component.ts, line: 8
L5: import { SingletonService } from ‘…/providers/singleton/singleton’;
L6: import { Storage } from ‘@ionic/storage’;
Cannot find module '../pages/huidige-rit/huidige-rit'.
L8: import { HuidigeRitPage } from '../pages/huidige-rit/huidige-rit';
L9: import { MijnRittenPage } from '../pages/mijn-ritten/mijn-ritten';
Cannot find module '../pages/mijn-ritten/mijn-ritten'.
L8: import { HuidigeRitPage } from '../pages/huidige-rit/huidige-rit';
L9: import { MijnRittenPage } from '../pages/mijn-ritten/mijn-ritten';
L10: import { HelpPage } from '../pages/help/help';
Cannot find module '../pages/help/help'.
L9: import { MijnRittenPage } from '../pages/mijn-ritten/mijn-ritten';
[18:21:41] typescript: src/app/app.component.ts, line: 9
[18:21:41] typescript: src/app/app.component.ts, line: 10
L10: import { HelpPage } from ‘…/pages/help/help’;
L11: import { DriveBidderPage } from ‘…/pages/drive-bidder/drive-bidder’;
Cannot find module '../pages/drive-bidder/drive-bidder'.
L10: import { HelpPage } from '../pages/help/help';
L11: import { DriveBidderPage } from '../pages/drive-bidder/drive-bidder';
L12: import {LogoutPage} from "../pages/logout/logout";
Cannot find module '../pages/logout/logout'.
L11: import { DriveBidderPage } from '../pages/drive-bidder/drive-bidder';
L12: import {LogoutPage} from "../pages/logout/logout";
L13: import {LoginPage} from "../pages/login/login";
[18:21:41] typescript: src/app/app.component.ts, line: 11
[18:21:41] typescript: src/app/app.component.ts, line: 12
Cannot find module ‘…/pages/login/login’.
L12: import {LogoutPage} from "../pages/logout/logout";
L13: import {LoginPage} from "../pages/login/login";
Cannot find module '../pages/drive-bidder/drive-bidder'.
L4: import { MyApp } from './app.component';
L5: import { DriveBidderPage } from '../pages/drive-bidder/drive-bidder';
L6: import { HuidigeRitPage } from '../pages/huidige-rit/huidige-rit';
Cannot find module '../pages/huidige-rit/huidige-rit'.
L5: import { DriveBidderPage } from '../pages/drive-bidder/drive-bidder';
[18:21:41] typescript: src/app/app.component.ts, line: 13
[18:21:41] typescript: src/app/app.module.ts, line: 5
[18:21:41] typescript: src/app/app.module.ts, line: 6
[18:21:41] typescript: src/app/app.module.ts, line: 7
[18:21:41] typescript: src/app/app.module.ts, line: 8
[18:21:41] typescript: src/app/app.module.ts, line: 9
[18:21:41] typescript: src/app/app.module.ts, line: 10
L6: import { HuidigeRitPage } from ‘…/pages/huidige-rit/huidige-rit’;
L7: import { MijnRittenPage } from ‘…/pages/mijn-ritten/mijn-ritten’;
Cannot find module '../pages/mijn-ritten/mijn-ritten'.
L6: import { HuidigeRitPage } from '../pages/huidige-rit/huidige-rit';
L7: import { MijnRittenPage } from '../pages/mijn-ritten/mijn-ritten';
L8: import { HelpPage } from '../pages/help/help';
Cannot find module '../pages/help/help'.
L7: import { MijnRittenPage } from '../pages/mijn-ritten/mijn-ritten';
L8: import { HelpPage } from '../pages/help/help';
L9: import { LogoutPage } from '../pages/logout/logout';
Cannot find module '../pages/logout/logout'.
L8: import { HelpPage } from '../pages/help/help';
L9: import { LogoutPage } from '../pages/logout/logout';
L10: import { LoginPage } from '../pages/login/login';
Cannot find module '../pages/login/login'.
L9: import { LogoutPage } from '../pages/logout/logout';
L10: import { LoginPage } from '../pages/login/login';
[18:21:41] typescript: src/app/app.module.ts, line: 11
[18:21:41] typescript: src/app/app.module.ts, line: 12
[18:21:41] typescript: src/app/app.module.ts, line: 14
[18:21:41] typescript: src/pages/home/home.ts, line: 3
L11: import { RidePage } from ‘…/pages/ride/ride’;
Cannot find module '../pages/ride/ride'.
L10: import { LoginPage } from '../pages/login/login';
L11: import { RidePage } from '../pages/ride/ride';
L12: import { startRide } from '../pages/startride/startride';
Cannot find module '../pages/startride/startride'.
L11: import { RidePage } from '../pages/ride/ride';
L12: import { startRide } from '../pages/startride/startride';
L13: import { HttpModule } from '@angular/http';
Cannot find module '../providers/singleton/singleton'.
L13: import { HttpModule } from '@angular/http';
L14: import { SingletonService } from '../providers/singleton/singleton';
Cannot find module '../../providers/singleton/singleton'.
L2: import { NavController } from 'ionic-angular';
L3: import { SingletonService } from '../../providers/singleton/singleton';
[18:21:41] ionic-app-script task: “build”
[18:21:41] Error: Failed to transpile program
Error: Failed to transpile program
at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:137:20
at Promise ()
at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:103:12)
at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:61:12)
at buildProject (/usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:97:78)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:47:16
at
npm info lifecycle DriveBidder@0.0.5~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! DriveBidder@0.0.5 build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the DriveBidder@0.0.5 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2018-03-05T18_21_41_457Z-debug.log
npm run build failed
Running after script…
$ run "clean-up"
Running Stage clean-up for Job: 5364108
ERROR: Job failed: exit status 1
I have no idea where to start from here. Any help?
ionic info:
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
System:
Node : v7.6.0
npm : 4.1.2
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Thx!