{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/9592","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/9592/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/9592/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/9592/events","html_url":"https://github.com/driftyco/ionic/issues/9592","id":194892046,"number":9592,"title":"Ionic Build failing (v2)","user":{"login":"Tyler-Darby","id":5661936,"avatar_url":"https://avatars.githubusercontent.com/u/5661936?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyler-Darby","html_url":"https://github.com/Tyler-Darby","followers_url":"https://api.github.com/users/Tyler-Darby/followers","following_url":"https://api.github.com/users/Tyler-Darby/following{/other_user}","gists_url":"https://api.github.com/users/Tyler-Darby/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyler-Darby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyler-Darby/subscriptions","organizations_url":"https://api.github.com/users/Tyler-Darby/orgs","repos_url":"https://api.github.com/users/Tyler-Darby/repos","events_url":"https://api.github.com/users/Tyler-Darby/events{/privacy}","received_events_url":"https://api.github.com/users/Tyler-Darby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-12T05:10:06Z","updated_at":"2016-12-12T12:40:35Z","closed_at":null,"body":"**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x**\r\n[ x] **2.x**\r\n\r\n`ionic build ios` isn't working at all for me. `ionic serve` works fine but whenever I try to build I get the error below. In my package.json I have appended `--dev` to the build script command because every time I build it builds production which takes forever, and this little bypass has been working for weeks until tonight. \r\n\r\nI can't seem to find any problems in my code and serve works fine.\r\n\r\n```\r\n> ionic-hello-world@ ionic:build \r\n> ionic-app-scripts build --dev\r\n\r\n[00:06:04]  ionic-app-scripts 0.0.45 \r\n[00:06:04]  build dev started ... \r\n[00:06:04]  clean started ... \r\n[00:06:04]  clean finished in 4 ms \r\n[00:06:04]  copy started ... \r\n[00:06:04]  transpile started ... \r\n[00:06:07]  build dev failed: Cannot read property 'indexOf' of undefined \r\n[00:06:07]  ionic-app-script task: \"build\" \r\n[00:06:07]  TypeError: Cannot read property 'indexOf' of undefined \r\nnpm ERR! Darwin 16.0.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"run\" \"ionic:build\" \"--\"\r\nnpm ERR! node v6.9.2\r\nnpm ERR! npm  v3.10.9\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! ionic-hello-world@ ionic:build: `ionic-app-scripts build --dev`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the ionic-hello-world@ ionic:build script 'ionic-app-scripts build --dev'.\r\n\r\n```\r\n```\r\n\r\nCordova CLI: 6.4.0 \r\nIonic Framework Version: 2.0.0-rc.3-201611302233\r\nIonic CLI Version: 2.1.17\r\nIonic App Lib Version: 2.1.7\r\nIonic App Scripts Version: 0.0.45\r\nios-deploy version: 1.9.0 \r\nios-sim version: 5.0.6 \r\nOS: macOS Sierra\r\nNode Version: v6.9.2\r\nXcode version: Xcode 8.1 Build version 8B62\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/266421831","html_url":"https://github.com/driftyco/ionic/issues/9592#issuecomment-266421831","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/9592","id":266421831,"user":{"login":"Tyler-Darby","id":5661936,"avatar_url":"https://avatars.githubusercontent.com/u/5661936?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyler-Darby","html_url":"https://github.com/Tyler-Darby","followers_url":"https://api.github.com/users/Tyler-Darby/followers","following_url":"https://api.github.com/users/Tyler-Darby/following{/other_user}","gists_url":"https://api.github.com/users/Tyler-Darby/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyler-Darby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyler-Darby/subscriptions","organizations_url":"https://api.github.com/users/Tyler-Darby/orgs","repos_url":"https://api.github.com/users/Tyler-Darby/repos","events_url":"https://api.github.com/users/Tyler-Darby/events{/privacy}","received_events_url":"https://api.github.com/users/Tyler-Darby/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T12:40:35Z","updated_at":"2016-12-12T12:40:35Z","body":"@graphefruit I've searched over my whole src directory using my IDE and I don't use `indexOf` in my code once. The only place it is used is `service-worker.js`\r\n\r\nCould this be caused by a NPM package? I am using `AngularFire2` with firebase currently and the problems seem to have started around that time, could that be the case?"}}
{"actor":{"display_login":"Tyler-Darby"}}