ionic cordova build android --prod
i have tried above one that time .i am getting errror
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.
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 Do you by chance run non typescript code in your project?
i am using ionic-audio plugin in my code
- Does your project work in
ionic serve
? - Does the build succeed if you use
npm run build --prod
? - 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
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