After migrating ionic version 4 to 5- production build not working (--prod)- Error: Internal Error: The structure of the program changed during codegen

Error: Internal Error: The structure of the program changed during codegen.

if anyone face this, pls tell me.

Hi @mariselvanssn , Please remove the platform first and then add it again & try to build , It Might help…

Google first hit result: angular - ERROR in Internal Error: The structure of the program changed during codegen - Stack Overflow