Cordova Build module.js:472 throw err;

For some reason I keep on getting the following error when doing a cordova build

 ionic-app-scripts build "--prod"

module.js:472
    throw err;
    ^

Error: Cannot find module '../dist/index'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/bitrise/src/node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js:19:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

Not even sure how to resolve the issue

Please check this troubleshooting guide: How to debug your build locally / "It works on my Mac/PC but not on bitrise.io"

And see this Ionic/Cordova setup guide: How to build Ionic 2 apps

Let us know if you have any questions, or if you can find the cause of the issue!