I have an application ported from angular 2 to angular 5. When I deploy it locally and run it through the http-server , I received no errors.
The problem occurs when I deploy it on my vm . After deployment, when I open it in a browser, it causes the following errors:
TypeError: Object (...) is not a function in _isAndroid (forms.js: 920)
Error: not available (in promise): TypeError: Object (...) is not a function TypeError: Object (...) is not a function in _isAndroid (forms.js: 920)
The deployment process in vm is as follows:
- Clone repository
- Install npm packages
- Build an app through
angular-cli - Copy distribution folder to relative path
My machines (local and vm) have the same npm 5.8.0, @ angular-cli 1.7.3, and I do not use package-lock.json .
Finally, I must mention that before the migration I had the same deployment process.
Do you know what may be wrong?
Korte source share