Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

Error: DiffMatchPatch is not a constructor #27

@ufoscout

Description

@ufoscout

Hi all,

I am using angular-diff-match-patch 0.2.4 library with angular 1.5. My project configuration includes typescript and webpack.
When I use semantic diff directive, for example:

 <pre semantic-diff left-obj="..." right-obj="..."></pre>

I always receive this exception:

Error: DiffMatchPatch is not a constructor

How can I make it working with webpack?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions