I've got an application migrated from angular 2 to angular 5. When I deploy it locally and launch it via http-server I got no errors.
The problem occurs when I deploy it on my vm. After deployment when I open it in browser it throws the following errors:
TypeError: Object(...) is not a function at _isAndroid (forms.js:920)
Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at _isAndroid (forms.js:920)
The deploy process in vm is as follows:
- Clone repository
- Install npm packages
- Build application via
angular-cli - Copy distribution folder on the relative path
My machines (local and vm) have the exact same npm 5.8.0, @angular-cli 1.7.3 and I don't use package-lock.json.
Finally I have to mention that before migration I had this exact same deployment process working.
Do you know what's possibly going wrong ?
Update
What I came up with is a brand new vm initialization (os, node, etc.)
npm ls)- David