Ionic build android --prod giving error

Hi,

I am fairly new to Ionic and building an app.
When I am trying to build the app by using “prod” flag its giving me error.

 ionic-app-script task: "build"
[20:07:59]  Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused
            by using 'barrel' index.ts files.
Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.
    at Error (native)

Please help me out !!!

My system information:

ordova CLI: 7.1.0
Ionic Framework Version: 3.7.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 3.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.11.2
Xcode version: Not installed