{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1164","repository_url":"https://api.github.com/repos/driftyco/ionic-cli","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1164/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1164/events","html_url":"https://github.com/driftyco/ionic-cli/issues/1164","id":164911595,"number":1164,"title":"ionic upload crashes with project created with ionic-m","user":{"login":"dkarchmer","id":3330496,"avatar_url":"https://avatars.githubusercontent.com/u/3330496?v=3","gravatar_id":"","url":"https://api.github.com/users/dkarchmer","html_url":"https://github.com/dkarchmer","followers_url":"https://api.github.com/users/dkarchmer/followers","following_url":"https://api.github.com/users/dkarchmer/following{/other_user}","gists_url":"https://api.github.com/users/dkarchmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkarchmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkarchmer/subscriptions","organizations_url":"https://api.github.com/users/dkarchmer/orgs","repos_url":"https://api.github.com/users/dkarchmer/repos","events_url":"https://api.github.com/users/dkarchmer/events{/privacy}","received_events_url":"https://api.github.com/users/dkarchmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-11T19:11:08Z","updated_at":"2016-07-11T19:11:08Z","closed_at":null,"body":"I created a project with https://github.com/mwaylabs/generator-m-ionic\r\nBecause it does not create an ionic.config.json file, I created one manually.\r\nI then run\r\n```\r\nionic upload\r\n```\r\n\r\nand got the following crash\r\n\r\n```\r\nUploading app....\r\nSaved app_id, writing to ionic.io.bundle.min.js...\r\n\r\nCaught exception:\r\n TypeError: Can't call method on  undefined\r\n    at TypeError (native)\r\n    at module.exports (/Users/david/ArchSys/iotile-mobile-ionic/node_modules/core-js/modules/_defined.js:3:28)\r\n    at createHTML (/Users/david/ArchSys/iotile-mobile-ionic/node_modules/core-js/modules/_string-html.js:7:19)\r\n    at bold (/Users/david/ArchSys/iotile-mobile-ionic/node_modules/core-js/modules/es6.string.bold.js:5:12)\r\n    at cb (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/logger.js:206:7)\r\n    at done (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/node_modules/async/lib/async.js:167:19)\r\n    at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/node_modules/async/lib/async.js:40:16\r\n    at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/logger.js:193:9\r\n    at Console.log (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/transports/console.js:127:3)\r\n    at emit (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/logger.js:186:17)\r\n    at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/node_modules/async/lib/async.js:157:13\r\n    at _each (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/node_modules/async/lib/async.js:57:9)\r\n    at Object.async.each (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/node_modules/async/lib/async.js:156:9)\r\n    at Logger.log (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/logger.js:214:9)\r\n    at target.(anonymous function) [as info] (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/winston/lib/winston/common.js:54:18)\r\n    at Request._callback (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/upload.js:150:11) \r\n```\r\n\r\nClearly this is an issue due for me not using the ionic cli to create the project, but it would be nice not to crash and instead give me a nice error msg."}}
{"actor":{"display_login":"dkarchmer"}}