I have created a react application in BAS. It works fine in developer environment. But when I push the application to Cloud Foundry, the application crashes when the instance starts.
Things I have tried to resolve the issue:
1. Deleted the application from Cloud Foundary and reinstalled it.
2. Removed the node modules in the source file and reinstalled it.
3. Downgraded the Node version to previous version.
Does anyone know what kind of error this is and how to resolve it? I am assuming that there might be a dependency that is depricated from npm which is causing the error. I have been facing deprication error a lot with React applications. Is there any way to overcome this issue while coding with React?