Error with ionic cordova build android --prod

ionic cordova build android --prod

i have tried above one that time .i am getting errror

image

Instead of posting screenshots, would you be so kind to copy the text over next time? Easier to read for us and screen readers. Regarding your problem, this error tells me you’re probably you have some plain javascript code that doesn’t work with the AOT compiler. That’s what’s causing the error.

2 Likes

how to resolve this any idea about this error

No, because I’m missing out on my magical class to look in someones other project today :slight_smile: Do you by chance run non typescript code in your project?

i am using ionic-audio plugin in my code

  1. Does your project work in ionic serve?
  2. Does the build succeed if you use npm run build --prod?
  3. Please post your ionic info output. Thank you.

in ionic serve my app working fine
ionic cordova run android --prod this throwing error as i attached image above post

here my ionic info
image

I know, you posted that. That’s why I asked for npm run build --prod which is similar but different.

3 posts were split to a new topic: Error: Type X in *.ts is part of the declarations of 2 modules