Strange error which exist only on linux, not on windows

When starting app on android I have this in console:

TypeError: Cannot read property ‘type’ of undefined
at Object.isOnline (webpack:////home/mateusz/Projects/internal-mobile-app/~/ng-cordova/dist/ng-cordova.js?:5476:48)
at isAvailable (webpack:///./sync/services/connection.js?:75:32)
at Object.Connection.$rootScope.$watch.$rootScope.STATE.online (webpack:///./sync/services/connection.js?:7:17)
at Scope.$digest (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:15659:40)
at Scope.$apply (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:15935:24)
at bootstrapApply (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:1624:15)
at Object.invoke (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:4443:17)
at doBootstrap (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:1622:14)
at bootstrap (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:1642:12)
at angularInit (webpack:////home/mateusz/Projects/internal-mobile-app/~/angular/angular.js?:1536:5)

my packages:

{
“scripts”: {
“android”: “ionic run android -l”,
“android_build”: “ionic build android”
},
“version”: “1.0.0”,
“dependencies”: {
“angular”: “1.4.1”,
“angular-animate”: “1.4.1”,
“angular-file-md5”: “0.1.0”,
“angular-hammer”: “2.1.10”,
“angular-i18n”: “1.4.5”,
“angular-resource”: “1.4.1”,
“angular-sanitize”: “1.4.1”,
“angular-translate”: “2.7.2”,
“angular-ui-router”: “0.2.15”,
“angular-vs-repeat”: “1.1.7”,
“angular-websocket”: “2.0.0”,
“extend”: “2.0.1”,
“fastclick”: “1.0.6”,
“gsap”: “1.17.0”,
“hammerjs”: “2.0.4”,
“html-loader”: “0.3.0”,
“imports-loader”: “0.6.4”,
“inherits”: “2.0.1”,
“install”: “0.1.8”,
“ng-cache-loader”: “0.0.9”,
“ng-cordova”: “0.1.20-alpha”,
“ngstorage”: “0.3.9”,
“ngtemplate-loader”: “1.3.0”,
“q”: “1.4.1”,
“tls”: “0.0.1”,
“underscore”: “1.8.3”
},
“devDependencies”: {
“angular-hmr”: “0.1.1”,
“autoprefixer-loader”: “2.0.0”,
“connect”: “3.4.0”,
“css-loader”: “0.16.0”,
“exports-loader”: “0.6.2”,
“expose-loader”: “0.7.0”,
“extend”: “2.0.1”,
“file-loader”: “0.8.4”,
“interpolate”: “0.1.0”,
“jasmine-node”: “1.14.5”,
“json-loader”: “0.5.2”,
“less”: “2.5.1”,
“less-loader”: “2.2.0”,
“napa”: “1.2.0”,
“ng-annotate-webpack-plugin”: “0.1.2”,
“shelljs”: “0.3.0”,
“stringify”: “3.1.0”,
“style-loader”: “0.12.3”,
“url-loader”: “0.5.6”,
“uuid”: “2.0.1”,
“vinyl-buffer”: “1.0.0”,
“vinyl-source-stream”: “1.1.0”,
“watchify”: “3.2.2”,
“webpack”: “1.11.0”,
“webpack-dev-server”: “1.10.1”,
“yargs”: “3.31.0”
},
“browser”: {
“ionic”: “./node_modules/ionic-bower/js/ionic.js”,
“ionic-angular”: “./node_modules/ionic-bower/js/ionic-angular.js”,
“angular-animate”: “./node_modules/angular-animate/angular-animate.js”,
“angular-sanitize”: “./node_modules/angular-sanitize/angular-sanitize.js”
},
“cordovaPlugins”: [
“cordova-plugin-keyboard”,
“cordova-plugin-file”,
“cordova-plugin-file-transfer”,
“cordova-plugin-whitelist”,
{
“locator”: “https://github.com/driftyco/ionic-plugin-keyboard”,
“id”: “ionic-plugin-keyboard”
},
{
“locator”: “https://github.com/mohamed-salah/MacAddress.git”,
“id”: “com-badrit-macaddress”
},
“cordova-plugin-network-information”
],
“cordovaPlatforms”: [
“android”
],
“main”: “dev-server.js”,
“directories”: {
“test”: “test”
},
}