Error encountered resolving symbol values statically while building


I am using ionic 2,
When I run command ionic cordova build android --prod, it shows me the following error message,

Error encountered resolving symbol values statically. Could not resolve …/pages/tabs/finance/finance-gambling-re
port-form/finance-gambling-report-form relative to C:/Users/aksha/Desktop/ionic_apps/askGanesha/src/app/app.module.ts.,
resolving symbol AppModule in C:/Users/aksha/Desktop/ionic_apps/askGanesha/src/app/app.module.ts, resolving symbol AppMo
dule in C:/Users/aksha/Desktop/ionic_apps/askGanesha/src/app/app.module.ts

Please help, thanks.


The error message seems pretty clear. It’s trying to resolve a relative path import and not finding anything with that name.


But I have imported the page in app.module.ts with correct path, how can I resolve it? :frowning:


Thank you I solved it, I gave incorrect paths :stuck_out_tongue: sorry for being silly.