Skip to content

[email protected] + webpack: runtime error after prod build #36

Closed
@borbelyzs

Description

@borbelyzs

We have upgraded our angular environment from version 5 to version 6, and now our angular-cli+webpack-based build system generates a "prod" build that fails at runtime in the typescript-logging module.

Error: Uncaught TypeError: Cannot read property 'Console' of undefined

It seems that the LoggerType enum is empty (or missing it's declaration). I have created a small environment to reproduce the bug here:
https://stackblitz.com/edit/angular-zhriph

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