You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Ionic build with option like --prod or --aot, it'll pass AOT process. But when App is started, it emits not defined reference error at 31 lines like below.
[Error]
ore.js:1449 ERROR Error: Uncaught (in promise): ReferenceError: Categories_1 is not defined
ReferenceError: Categories_1 is not defined
at Object.ɵ0 [as type] (categories.ts:31)
at new RelationMetadata (RelationMetadata.js:138)
at EntityMetadataBuilder.js:338
at Array.map ()
at EntityMetadataBuilder.computeEntityMetadataStep1 (EntityMetadataBuilder.js:334)
at EntityMetadataBuilder.js:68
at Array.forEach ()
at EntityMetadataBuilder.build (EntityMetadataBuilder.js:68)
at ConnectionMetadataBuilder.buildEntityMetadatas (ConnectionMetadataBuilder.js:56)
at Connection.buildMetadatas (Connection.js:509)
at Object.ɵ0 [as type] (categories.ts:31)
at new RelationMetadata (RelationMetadata.js:138)
at EntityMetadataBuilder.js:338
at Array.map ()
at EntityMetadataBuilder.computeEntityMetadataStep1 (EntityMetadataBuilder.js:334)
at EntityMetadataBuilder.js:68
at Array.forEach ()
at EntityMetadataBuilder.build (EntityMetadataBuilder.js:68)
at ConnectionMetadataBuilder.buildEntityMetadatas (ConnectionMetadataBuilder.js:56)
at Connection.buildMetadatas (Connection.js:509)
at c (polyfills.js:3)
at polyfills.js:3
at polyfills.js:3
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4760)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.js:4751)
The text was updated successfully, but these errors were encountered:
When Ionic build with option like --prod or --aot, it'll pass AOT process. But when App is started, it emits not defined reference error at 31 lines like below.
[Versions]
Angular: 5.2.11
ionic-angular: 3.9.2
ionic/app-script: 3.1.9
typeorm: 0.2.7
[Entity: categories.ts]
`
@entity("Categories")
@Index("fk_Categories_Categories1_idx",["Categories_id",])
export class Categories {
31: @manytoone(type=>Categories, Categories_id=>Categories_id.subCategories)
@joincolumn({ name:'Categories_id'})
Categories_id:Categories;
}
`
[Error]
ore.js:1449 ERROR Error: Uncaught (in promise): ReferenceError: Categories_1 is not defined
ReferenceError: Categories_1 is not defined
at Object.ɵ0 [as type] (categories.ts:31)
at new RelationMetadata (RelationMetadata.js:138)
at EntityMetadataBuilder.js:338
at Array.map ()
at EntityMetadataBuilder.computeEntityMetadataStep1 (EntityMetadataBuilder.js:334)
at EntityMetadataBuilder.js:68
at Array.forEach ()
at EntityMetadataBuilder.build (EntityMetadataBuilder.js:68)
at ConnectionMetadataBuilder.buildEntityMetadatas (ConnectionMetadataBuilder.js:56)
at Connection.buildMetadatas (Connection.js:509)
at Object.ɵ0 [as type] (categories.ts:31)
at new RelationMetadata (RelationMetadata.js:138)
at EntityMetadataBuilder.js:338
at Array.map ()
at EntityMetadataBuilder.computeEntityMetadataStep1 (EntityMetadataBuilder.js:334)
at EntityMetadataBuilder.js:68
at Array.forEach ()
at EntityMetadataBuilder.build (EntityMetadataBuilder.js:68)
at ConnectionMetadataBuilder.buildEntityMetadatas (ConnectionMetadataBuilder.js:56)
at Connection.buildMetadatas (Connection.js:509)
at c (polyfills.js:3)
at polyfills.js:3
at polyfills.js:3
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4760)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.js:4751)
The text was updated successfully, but these errors were encountered: