Unstable Android Release Build

Hi,
when i generate a build android for production, with --release and --prod options the apk generated is unstable. For example tapping on the items in the left side menu has no effects. In the debug apk i have not problems.

I have updated the app.scripts to the last version.

Which is the problem? This is a serious problem.

Thanks in advance

I think you have a problem with some angular component, service or module and when you run for production the code are minified and when it happens something is broken, to discover which file is causing the problem you can run ‘ngc’ command, this will try to compile you project and will show the exactly error and file.

1 Like

How can i run the ngc command?

You can create npm script inside your package.json

"scripts": {
    ...
    "ngc": "ngc"
}

and use

npm run ngc