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

1 Like

That’s cool, we can Google too. What if none of the answers helped?

Congrats - not everybody though.

Uh, sorry for the harsh comment… Ionic is giving me such a headache every time, so rarely do I come to this forum in a good mood. Honestly, even though the answers in that Stack Overflow thread didn’t help, the workaround mentioned in the comments did. So thank you for pointing people to that thread, and again, sorry.

1 Like

Thanks reverting back - all good!

I also feel the rollercoaster

Happy coding.

1 Like