Remote build failing after migration to ionicPro - cannot find module ./_rules

Hi,

I just migrated my existing app to the ionic Pro program.
I get this error after running "git push ionic master"
Running “ionic build --prod” locally gives no problems

There is a reference to module ‘./_rules’ in the error which I haven’t heard about untill this error appeared…
ionic.config.json is present

Any ideas?

Thanks a lot
Robrecht

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on IonicJS Runner 2 (7981969b)
Using Shell executor…
Running on ip-172-31-11-42…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/7981969b/0/project-1’…
Checking out 11dfd8cd as master…
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates…
$ build-app
Fetching build dependencies…
Running: npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: buffer-shims@1.0.0 (node_modules/fsevents/node_modules/buffer-shims):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/buffer-shims’ -> '/usr/src/app/node_modules/fsevents/node_modules/.buffer-shims.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules/fsevents/node_modules/concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/concat-map’ -> '/usr/src/app/node_modules/fsevents/node_modules/.concat-map.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: extsprintf@1.0.2 (node_modules/fsevents/node_modules/extsprintf):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/extsprintf’ -> '/usr/src/app/node_modules/fsevents/node_modules/.extsprintf.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: jodid25519@1.0.2 (node_modules/fsevents/node_modules/jodid25519):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/jodid25519’ -> '/usr/src/app/node_modules/fsevents/node_modules/.jodid25519.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: json-schema@0.2.3 (node_modules/fsevents/node_modules/json-schema):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/json-schema’ -> '/usr/src/app/node_modules/fsevents/node_modules/.json-schema.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.0.0 (node_modules/fsevents/node_modules/ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/ms’ -> '/usr/src/app/node_modules/fsevents/node_modules/.ms.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp@0.6.36 (node_modules/fsevents/node_modules/node-pre-gyp):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/node-pre-gyp’ -> '/usr/src/app/node_modules/fsevents/node_modules/.node-pre-gyp.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: qs@6.4.0 (node_modules/fsevents/node_modules/qs):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/qs’ -> '/usr/src/app/node_modules/fsevents/node_modules/.qs.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: verror@1.3.6 (node_modules/fsevents/node_modules/verror):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/verror’ -> '/usr/src/app/node_modules/fsevents/node_modules/.verror.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.4.2 (node_modules/fsevents/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/deep-extend’ -> '/usr/src/app/node_modules/fsevents/node_modules/.deep-extend.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fstream-ignore@1.0.5 (node_modules/fsevents/node_modules/fstream-ignore):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/fstream-ignore’ -> '/usr/src/app/node_modules/fsevents/node_modules/.fstream-ignore.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.4 (node_modules/fsevents/node_modules/ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/ini’ -> '/usr/src/app/node_modules/fsevents/node_modules/.ini.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rc@1.2.1 (node_modules/fsevents/node_modules/rc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/rc’ -> '/usr/src/app/node_modules/fsevents/node_modules/.rc.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/rc/node_modules/minimist’ -> '/usr/src/app/node_modules/fsevents/node_modules/rc/node_modules/.minimist.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/fsevents/node_modules/strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/strip-json-comments’ -> '/usr/src/app/node_modules/fsevents/node_modules/.strip-json-comments.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tar-pack@3.4.0 (node_modules/fsevents/node_modules/tar-pack):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/tar-pack’ -> '/usr/src/app/node_modules/fsevents/node_modules/.tar-pack.DELETE’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: uid-number@0.0.6 (node_modules/fsevents/node_modules/uid-number):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename ‘/usr/src/app/node_modules/fsevents/node_modules/uid-number’ -> ‘/usr/src/app/node_modules/fsevents/node_modules/.uid-number.DELETE’

added 31 packages, removed 144 packages and updated 126 packages in 11.426s
npm install succeeded
Detected local install of ionic cli…
Running: ionic build --prod
[ANNOUNCE] Hi! Welcome to CLI 3.9.

       We decided to merge core plugins back into the main ionic CLI package. The @ionic/cli-plugin-ionic-angular, @ionic/cli-plugin-ionic1, @ionic/cli-plugin-cordova, and @ionic/cli-plugin-gulp plugins have all been deprecated and won't be loaded by the CLI anymore. We listened to devs and determined they added unnecessary complexity. You can uninstall them from your project(s).
       
       No functionality was removed and all commands will continue working normally. You may wish to review the CHANGELOG: https://github.com/ionic-team/ionic-cli/blob/master/CHANGELOG.md#changelog
       
       Thanks,
       The Ionic Team

Error: Cannot find module './_rules’
ionic build failed…falling back to npm run build
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 prono@0.0.1~prebuild: prono@0.0.1
npm info lifecycle prono@0.0.1~build: prono@0.0.1

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

module.js:487
throw err;
^

Error: Cannot find module './_rules’
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/usr/src/app/node_modules/ajv/lib/compile/rules.js:3:19)
at Module._compile (module.js:569:30)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
npm info lifecycle prono@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! prono@0.0.1 build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the prono@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-08-26T12_07_21_527Z-debug.log
npm run build failed
Make sure your project has an ionic.config.json or a build script in the package.json
Running after script…
$ clean-up
Cleaning up files…
Successful clean up
ERROR: Job failed: exit status 1