Skip to content

Breaking change in linkifyjs 4.3.2 if linkify-react is on older version #520

@joshzivot

Description

@joshzivot

This error occurred in our app after upgrading linkifyjs to 4.3.2 –

Uncaught TypeError: linkifyjs__WEBPACK_IMPORTED_MODULE_1__.options.assign is not a function

linkify-react was still on 4.3.1 when this occurred, and upgrading to 4.3.2 fixed the issue. However, I would not expect a single patch version change to cause a fatal error.

Looking at the 4.3.2 change, it seems this occurred because the "assign" export was removed from linkifyjs in 4.3.2, so if an older version of linkify-react was being used, it's trying to import/use that function that no longer exists.

Thank you!

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