Skip to content

When Ionic build with minifyjs option, the CircularRelationError will be emitted. #27

Open
@JeongJun-Lee

Description

@JeongJun-Lee

When I try to build with --minifyjs, it also emits circular relations error like this. The minifyjs option includes the mangling by uglifyjs. I think the TypeORM is not safe about this mangling process. But the mangling process in Ionic is default. Ionic itself includes this mangling process in production build process with --prod option.

ERROR Error: Uncaught (in promise): CircularRelationsError: Circular relations detected: e -> t -> e. To resolve this issue you need to set nullable: false somewhere in this dependency structure.
CircularRelationsError: Circular relations detected: e -> t -> e. To resolve this issue you need to set nullable: false somewhere in this dependency structure.
at new t (vendor.js:1)
at e.validateDependencies (vendor.js:1)
at e.validateMany (vendor.js:1)
at e.buildMetadatas (vendor.js:1)
at e. (vendor.js:1)
at vendor.js:1
at Object.next (vendor.js:1)
at s (vendor.js:1)
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:1)
at new t (vendor.js:1)
at e.validateDependencies (vendor.js:1)
at e.validateMany (vendor.js:1)
at e.buildMetadatas (vendor.js:1)
at e. (vendor.js:1)
at vendor.js:1
at Object.next (vendor.js:1)
at s (vendor.js:1)
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:1)
at c (polyfills.js:3)
at polyfills.js:3
at polyfills.js:3
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:1)
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 (vendor.js:1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions