Ionic Pro - Build failed after git push - Bluetooth LE Support is needed


#1

Hi,
I am developing apps with Cordova Bluetooth Low Energy support with Ionic Pro. The app gets built locally without any issues and runs on Android as well. But it doesn’T get built in the Ionic Pro cloud after git push.
Please find below the failed build log:
I am using latest Ionic 3.7.1 version and Ionic CLI.

Build failed
Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on Prod Snapshot Builds 1 (c9648220)
Using Shell executor...
Running on ip-10-2-65-187...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'...
Checking out fd9f70bb as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install
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 optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 883 packages in 29.284s
npm install succeeded
Running: 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 bleapp@0.0.1~prebuild: bleapp@0.0.1
npm info lifecycle bleapp@0.0.1~build: bleapp@0.0.1

> bleapp@0.0.1 build /usr/src/app
> ionic-app-scripts build

[20:51:00] ionic-app-scripts 3.0.0
[20:51:00] build dev started ...
[20:51:00] clean started ...
[20:51:00] clean finished in 1 ms
[20:51:00] copy started ...
[20:51:00] deeplinks started ...
[20:51:00] deeplinks finished in 72 ms
[20:51:00] transpile started ...
[20:51:06] typescript: src/pages/home/home.ts, line: 53
Property 'interval' does not exist on type 'typeof Observable'.

L52: this.isBLEEn();
L53: this.timer = Observable.interval(BLE_UPDATE_IV);
L54: this.timer.subscribe(

[20:51:06] typescript: src/pages/home/home.ts, line: 99
Property 'readRSSI' does not exist on type 'typeof BLE'.

L99: BLE.readRSSI(dev.id.toString()).then(
L100: (data) => {

[20:51:06] ionic-app-script task: "build"
[20:51:06] 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:106:82
at
npm info lifecycle bleapp@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bleapp@0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bleapp@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/2017-10-23T20_51_06_208Z-debug.log
npm run build failed
Make sure your project has a build script in the package.json
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1
4 days ago 

The App runs on Android and old Ionic View on iPAD, it just doesn’t build with IONIC PRO in the cloud


#2

What is your ionic info output?


Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

You can - and should - contact support at http://ionicframework.com/support#support


#3

Here you go!

cli packages: (C:\Users\A77833\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.0.0
Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.5.1
Ionic Framework    : ionic-angular 3.7.1

System:

Node : v7.7.4
npm  : 4.1.2
OS   : Windows 7

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro