Strange error with moduleId

undefined is not an object (evaluating ‘modules[moduleId].call’)

I am getting this error when I ionic serve. Any ideas what is going on. It deploys android perfectly but on iOS it doesn’t open the app.