Ionic Pro: Build Fails

I am trying to follow the guidelines online to add monitoring to an app in Ionic Pro. It works when running locally using “ionic serve” but the build script is failing with the following error:

Cannot find module ‘@ionic/pro’ on the line where I am trying to import Pro.

Any thoughts?

Is it failing on the initial upload or when you try to create your apk/ipa file?

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

Thanks for your help. I’ll send the feedback.

Initial upload. Build script shows that it failed to build.

Can you build locally with --prod?

I am facing issue with ionic pro build it is failing though my local build is working fine.
Someone please help me to solve this issue

Please find the build log

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on Prod Snapshot Builds 1 (c9648220)
Using Shell executor…
Running on ip-10-2-184-101…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/c9648220/0/project-1’…
Checking out f8270e37 as master…
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates…
$ build-app
Fetching build dependencies…
Running: npm install
npm ERR! file /usr/src/app/package.json
npm ERR! Failed to parse json
npm ERR! Trailing comma in object at 12:5
npm ERR! },
npm ERR! ^
npm ERR! File: /usr/src/app/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2017-10-08T15_30_55_309Z-debug.log
npm install failed
Running after script…
$ clean-up
Cleaning up files…
Successful clean up
ERROR: Job failed: exit status 1