{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1437","repository_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts","labels_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1437/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1437/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1437/events","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1437","id":325314363,"node_id":"MDU6SXNzdWUzMjUzMTQzNjM=","number":1437,"title":"TypeError: Cannot read property 'flags' of undefined","user":{"login":"Dercetech","id":1841820,"node_id":"MDQ6VXNlcjE4NDE4MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1841820?v=4","gravatar_id":"","url":"https://api.github.com/users/Dercetech","html_url":"https://github.com/Dercetech","followers_url":"https://api.github.com/users/Dercetech/followers","following_url":"https://api.github.com/users/Dercetech/following{/other_user}","gists_url":"https://api.github.com/users/Dercetech/gists{/gist_id}","starred_url":"https://api.github.com/users/Dercetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dercetech/subscriptions","organizations_url":"https://api.github.com/users/Dercetech/orgs","repos_url":"https://api.github.com/users/Dercetech/repos","events_url":"https://api.github.com/users/Dercetech/events{/privacy}","received_events_url":"https://api.github.com/users/Dercetech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-22T14:15:38Z","updated_at":"2018-09-06T06:10:00Z","closed_at":null,"author_association":"NONE","body":"#### Short description of the problem:\r\nAs I execute `npm run build --prod`, the following error occurs, stopping the build:\r\n\r\n> TypeError: Cannot read property 'flags' of undefined\r\n\r\n#### What behavior are you expecting?\r\nA working prod build (i.e. using AOT).\r\n\r\n**Steps to reproduce:**\r\n1. See the attached package.json\r\n2. With similar dependencies, run `npm run build --prod`\r\n3. crash\r\n\r\n```\r\ninsert any relevant code between the above and below backticks\r\n```\r\n\r\n**Which @ionic/app-scripts version are you using?**\r\nSee package.json\r\n\r\n**package.json** \r\n\r\n```\r\n{\r\n  \"version\": \"1.0.0\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"clean\": \"ionic-app-scripts clean\",\r\n    \"lint\": \"ionic-app-scripts lint\",\r\n    \"ionic:build\": \"ionic-app-scripts build\",\r\n    \"ionic:serve\": \"ionic-app-scripts serve\"\r\n  },\r\n  \"config\": {\r\n    \"ionic_webpack\": \"./config/webpack.config.js\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/animations\": \"^5.2.11\",\r\n    \"@angular/common\": \"5.2.9\",\r\n    \"@angular/compiler\": \"5.2.9\",\r\n    \"@angular/compiler-cli\": \"5.2.9\",\r\n    \"@angular/core\": \"5.2.9\",\r\n    \"@angular/flex-layout\": \"2.0.0-beta.12\",\r\n    \"@angular/forms\": \"5.2.9\",\r\n    \"@angular/http\": \"5.2.9\",\r\n    \"@angular/platform-browser\": \"5.2.9\",\r\n    \"@angular/platform-browser-dynamic\": \"5.2.9\",\r\n    \"@ionic-native/core\": \"4.4.0\",\r\n    \"@ionic-native/splash-screen\": \"4.4.0\",\r\n    \"@ionic-native/status-bar\": \"4.4.0\",\r\n    \"@ionic/pro\": \"1.0.17\",\r\n    \"@ionic/storage\": \"2.1.3\",\r\n    \"@ngrx/effects\": \"^5.2.0\",\r\n    \"@ngrx/store\": \"^5.2.0\",\r\n    \"@ngrx/store-devtools\": \"^5.2.0\",\r\n    \"angularfire2\": \"^5.0.0-rc.5-next\",\r\n    \"firebase\": \"^4.13.1\",\r\n    \"ionic-angular\": \"3.9.2\",\r\n    \"ionicons\": \"3.0.0\",\r\n    \"ngx-perfect-scrollbar\": \"^5.3.5\",\r\n    \"rxjs\": \"^6.0.0\",\r\n    \"rxjs-compat\": \"^6.1.0\",\r\n    \"sw-toolbox\": \"3.6.0\",\r\n    \"zone.js\": \"0.8.18\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@ionic/app-scripts\": \"^3.1.9\",\r\n    \"redux-devtools-extension\": \"^2.13.2\",\r\n    \"typescript\": \"~2.4.2\"\r\n  }\r\n}\r\n```\r\n\r\n\r\nFull error stack:\r\n\r\n> [16:09:06]  ionic-app-script task: \"build\"\r\n> [16:09:06]  TypeError: Cannot read property 'flags' of undefined\r\n> TypeError: Cannot read property 'flags' of undefined\r\n>     at checkUnreachable (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:24905:31)\r\n>     at bindChildrenWorker (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:23111:17)\r\n>     at bindChildren (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:23055:17)\r\n>     at bind (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:24319:21)\r\n>     at bindSourceFile (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:22689:17)\r\n>     at Object.bindSourceFile (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:22640:9)\r\n>     at initializeTypeChecker (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:47988:20)\r\n>     at Object.createTypeChecker (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:27142:9)\r\n>     at getDiagnosticsProducingTypeChecker (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:69678:93)\r\n>     at emitWorker (C:\\Users\\e026486\\Projects\\_jem\\ionosphere\\node_modules\\typescript\\lib\\typescript.js:69722:32)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/comments/418976138","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1437#issuecomment-418976138","issue_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1437","id":418976138,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODk3NjEzOA==","user":{"login":"pairmix","id":33130887,"node_id":"MDQ6VXNlcjMzMTMwODg3","avatar_url":"https://avatars0.githubusercontent.com/u/33130887?v=4","gravatar_id":"","url":"https://api.github.com/users/pairmix","html_url":"https://github.com/pairmix","followers_url":"https://api.github.com/users/pairmix/followers","following_url":"https://api.github.com/users/pairmix/following{/other_user}","gists_url":"https://api.github.com/users/pairmix/gists{/gist_id}","starred_url":"https://api.github.com/users/pairmix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pairmix/subscriptions","organizations_url":"https://api.github.com/users/pairmix/orgs","repos_url":"https://api.github.com/users/pairmix/repos","events_url":"https://api.github.com/users/pairmix/events{/privacy}","received_events_url":"https://api.github.com/users/pairmix/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T06:10:00Z","updated_at":"2018-09-06T06:10:00Z","author_association":"NONE","body":"Reverting from \"@ionic/app-scripts\": \"3.2\" to \"@ionic/app-scripts\": \"3.1.11\" works fine.\r\nCompatibility issue with webpack ?\r\n"}}
{"actor":{"display_login":"pairmix"}}