Build failed on commit


#1

Hello , can you help me ? getting error when click on “building” on my commit. the app work fine when i use “ionic serve” and “ionic cordova emulate ios”

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on ip-10-2-73-152 (c9648220)
Using Shell executor…
Running on ip-10-2-73-152…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/c9648220/3/project-1’…
Checking out 9ae671e4 as master…
Updating/initializing submodules recursively…
$ run “fetch-updates”
Running Stage fetch-updates for Job: 5503701
Checking for build process updates…
$ run “build-app”
Running Stage build-app for Job: 5503701
Parsing ionic.config.json for project settings
Project Settings:
Name: meubebe
App ID: ba2df44d
Type: ionic-angular
Build script detected in package.json…
$ npm install --quiet --no-optional

grpc@1.10.1 install /usr/src/app/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: “/usr/src/app/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node” is installed via remote

node-sass@4.7.2 install /usr/src/app/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/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.7.2/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.7.2 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 optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

added 1027 packages in 112.309s
$ 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 meubebe@0.0.1~prebuild: meubebe@0.0.1
npm info lifecycle meubebe@0.0.1~build: meubebe@0.0.1

meubebe@0.0.1 build /usr/src/app
ionic-app-scripts build

[14:15:37] ionic-app-scripts 3.1.8
[14:15:37] build dev started …
[14:15:37] clean started …
[14:15:37] clean finished in 9 ms
[14:15:37] copy started …
[14:15:38] deeplinks started …
[14:15:38] deeplinks finished in 469 ms
[14:15:38] transpile started …
[14:15:51] typescript: src/pages/addchildren/addchildren.ts, line: 1
Cannot find module ‘./…/…/models/MeuBebe.interface’.

   L1:  import { MeuBebe } from './../../models/MeuBebe.interface';
   L2:  import { Component } from '@angular/core';

[14:15:51] ionic-app-script task: “build”
[14:15:51] 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:159:20
at Promise ()
at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:109:82
at
npm info lifecycle meubebe@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meubebe@0.0.1 build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meubebe@0.0.1 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-04-24T14_15_51_800Z-debug.log
npm run build failed
Running after script…
$ run “clean-up”
Running Stage clean-up for Job: 5503701
ERROR: Job failed: exit status 1