{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/1263","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/1263/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/1263/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/1263/events","html_url":"https://github.com/typeorm/typeorm/issues/1263","id":277736385,"number":1263,"title":"ionic cordova build android --prod not working","user":{"login":"santu-git","id":6150407,"avatar_url":"https://avatars2.githubusercontent.com/u/6150407?v=4","gravatar_id":"","url":"https://api.github.com/users/santu-git","html_url":"https://github.com/santu-git","followers_url":"https://api.github.com/users/santu-git/followers","following_url":"https://api.github.com/users/santu-git/following{/other_user}","gists_url":"https://api.github.com/users/santu-git/gists{/gist_id}","starred_url":"https://api.github.com/users/santu-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santu-git/subscriptions","organizations_url":"https://api.github.com/users/santu-git/orgs","repos_url":"https://api.github.com/users/santu-git/repos","events_url":"https://api.github.com/users/santu-git/events{/privacy}","received_events_url":"https://api.github.com/users/santu-git/received_events","type":"User","site_admin":false},"labels":[{"id":750298469,"url":"https://api.github.com/repos/typeorm/typeorm/labels/comp:%20ionic","name":"comp: ionic","color":"1d76db","default":false},{"id":489019544,"url":"https://api.github.com/repos/typeorm/typeorm/labels/needs%20more%20info","name":"needs more info","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"daniel-lang","id":6500514,"avatar_url":"https://avatars2.githubusercontent.com/u/6500514?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-lang","html_url":"https://github.com/daniel-lang","followers_url":"https://api.github.com/users/daniel-lang/followers","following_url":"https://api.github.com/users/daniel-lang/following{/other_user}","gists_url":"https://api.github.com/users/daniel-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-lang/subscriptions","organizations_url":"https://api.github.com/users/daniel-lang/orgs","repos_url":"https://api.github.com/users/daniel-lang/repos","events_url":"https://api.github.com/users/daniel-lang/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-lang/received_events","type":"User","site_admin":false},"assignees":[{"login":"daniel-lang","id":6500514,"avatar_url":"https://avatars2.githubusercontent.com/u/6500514?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-lang","html_url":"https://github.com/daniel-lang","followers_url":"https://api.github.com/users/daniel-lang/followers","following_url":"https://api.github.com/users/daniel-lang/following{/other_user}","gists_url":"https://api.github.com/users/daniel-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-lang/subscriptions","organizations_url":"https://api.github.com/users/daniel-lang/orgs","repos_url":"https://api.github.com/users/daniel-lang/repos","events_url":"https://api.github.com/users/daniel-lang/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-lang/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2017-11-29T12:28:25Z","updated_at":"2017-12-01T05:29:58Z","closed_at":null,"author_association":"NONE","body":"My Observation is if there is any relation between 2 entities then this problem happening.\r\n\r\n```\r\nTypeError: Cannot read property 'kind' of undefined\r\n    at nodeCanBeDecorated (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:7805:35)\r\n    at nodeIsDecorated (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:7825:16)\r\n    at Object.nodeOrChildIsDecorated (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:7829:16)\r\n    at isDecoratedClassElement (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51668:23)\r\n    at isInstanceDecoratedClassElement (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51659:20)\r\n    at Object.filter (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:1645:31)\r\n    at getDecoratedClassElements (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51641:23)\r\n    at generateClassElementDecorationExpressions (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51815:27)\r\n    at addClassElementDecorationStatements (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51804:44)\r\n    at visitClassDeclaration (/Users/santu/MyWorkspace/Ionic/sm3-fresh/node_modules/typescript/lib/typescript.js:51131:13)\r\n```\r\nactivity.entity.js\r\n```typescript\r\nimport { Result } from './result.entity';\r\nimport { Entity, Column, PrimaryColumn, ManyToOne, OneToMany, JoinColumn } from 'typeorm';\r\n\r\n@Entity('activity')\r\nexport class Activity {\r\n  \r\n  /* Columns */\r\n  @PrimaryColumn()\r\n  id: string;\r\n\r\n  @Column()\r\n  name: string;\r\n\r\n  @Column({nullable: true})\r\n  note: string;\r\n  ...............\r\n  \r\n  /* :has_many relations */\r\n  @OneToMany(type=> Result, result=>result.activity,{\r\n    cascadeInsert: true,\r\n    cascadeUpdate: true,\r\n  })\r\n  results: Result[] = [];\r\n}\r\n```\r\nresult.entity.ts\r\n```typescript\r\nimport { Activity } from './activity.entity';\r\n//import { Catalog } from './catalog.entity';\r\nimport { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm';\r\n\r\n@Entity('result')\r\nexport class Result {\r\n\r\n  @PrimaryColumn()\r\n  id: string;\r\n\r\n  @Column()\r\n  name: string;\r\n\r\n  @Column({ nullable: true })\r\n  value: string;\r\n\r\n  \r\n  \r\n  /* Relations */\r\n  /* :belongs_to relations */\r\n  @ManyToOne(type=>Activity, activity=> activity.results)\r\n  @JoinColumn({name: \"activity_id\"})\r\n  activity: Activity;\r\n}\r\n```\r\n\r\nFramework Versions\r\n\r\ncli packages: (/usr/local/lib/node_modules)\r\n\r\n    @ionic/cli-utils  : 1.18.0\r\n    ionic (Ionic CLI) : 3.18.0\r\n\r\nglobal packages:\r\n\r\n    cordova (Cordova CLI) : 7.1.0 \r\n\r\nlocal packages:\r\n\r\n    @ionic/app-scripts : 3.1.2\r\n    Cordova Platforms  : android 6.3.0\r\n    Ionic Framework    : ionic-angular 3.9.2\r\n\r\nSystem:\r\n\r\n    Android SDK Tools : 25.2.5\r\n    ios-deploy        : 1.9.0 \r\n    ios-sim           : 5.0.10 \r\n    Node              : v7.8.0\r\n    npm               : 5.5.1 \r\n    OS                : macOS High Sierra\r\n    Xcode             : Xcode 8.0 Build version 8A218a \r\n\r\nEnvironment Variables:\r\n\r\n    ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1/\r\n\r\nMisc:\r\n\r\n    backend : legacy\r\n   typeorm: 0.1.2"},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/348405259","html_url":"https://github.com/typeorm/typeorm/issues/1263#issuecomment-348405259","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/1263","id":348405259,"user":{"login":"santu-git","id":6150407,"avatar_url":"https://avatars2.githubusercontent.com/u/6150407?v=4","gravatar_id":"","url":"https://api.github.com/users/santu-git","html_url":"https://github.com/santu-git","followers_url":"https://api.github.com/users/santu-git/followers","following_url":"https://api.github.com/users/santu-git/following{/other_user}","gists_url":"https://api.github.com/users/santu-git/gists{/gist_id}","starred_url":"https://api.github.com/users/santu-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santu-git/subscriptions","organizations_url":"https://api.github.com/users/santu-git/orgs","repos_url":"https://api.github.com/users/santu-git/repos","events_url":"https://api.github.com/users/santu-git/events{/privacy}","received_events_url":"https://api.github.com/users/santu-git/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T05:29:58Z","updated_at":"2017-12-01T05:29:58Z","author_association":"NONE","body":"@pleerock \r\n\"typescript\": \"2.4.2\""}}
{"actor":{"display_login":"santu-git"}}