@robrechtvm wrote:
I have this strange error when trying to git push my latest version to ionic pro platform.
In this log you see the ionic build --prod fails but on my local machine this is just building well !The error says "Cannot find module ‘./_rules’ which is something I never heared of before.
Googling for it didn’t take me any further…Any ideas please ?
npm install succeeded
remote: Detected local install of ionic cli…
remote: Running: ionic build --prod
remote: [ANNOUNCE] Hi! Welcome to CLI 3.9.
remote:
remote: 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).
remote:
remote: 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
remote:
remote: Thanks,
remote: The Ionic Team
remote:
remote:
remote: Error: Cannot find module './_rules’
remote: ionic build failed…falling back to npm run build
remote: Running: npm run build
remote: npm info it worked if it ends with ok
remote: npm info using npm@5.3.0
remote: npm info using node@v8.2.1
remote: npm info lifecycle prono@0.0.1~prebuild: prono@0.0.1
remote: npm info lifecycle prono@0.0.1~build: prono@0.0.1
remote:
remote: > prono@0.0.1 build /usr/src/app
remote: > ionic-app-scripts build
remote:
remote: module.js:487
remote: throw err;
remote: ^
remote:
remote: Error: Cannot find module './_rules’
remote: at Function.Module._resolveFilename (module.js:485:15)
remote: at Function.Module._load (module.js:437:25)
remote: at Module.require (module.js:513:17)
remote: at require (internal/module.js:11:18)
remote: at Object. (/usr/src/app/node_modules/ajv/lib/compile/rules.js:3:19)
remote: at Module._compile (module.js:569:30)
remote: at Object.Module._extensions…js (module.js:580:10)
remote: at Module.load (module.js:503:32)
remote: at tryModuleLoad (module.js:466:12)
remote: at Function.Module._load (module.js:458:3)
remote: npm info lifecycle prono@0.0.1~build: Failed to exec build script
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! prono@0.0.1 build:ionic-app-scripts build
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the prono@0.0.1 build script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /home/gitlab-runner/.npm/_logs/2017-08-26T15_39_42_199Z-debug.log
remote: npm run build failed
Posts: 1
Participants: 1