Skip to content

Merge of request #5534 broke the https://reactdatepicker.com/ website #5550

@mkacik

Description

@mkacik

Describe the bug
This merge seems to have broken the website https://reactdatepicker.com/.

Following css error causing it to render as just a blank page:

index-CfSFwDNY.js:49 Uncaught Error: Minified React error #527; visit https://react.dev/errors/527?args[]=19.1.0&args[]=19.0.0 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at hE (index-CfSFwDNY.js:49:32073)
    at pE (index-CfSFwDNY.js:49:34100)
    at index-CfSFwDNY.js:49:34123

This points to following code in minified react:

    var b0 = n.version;
    if (b0 !== "19.0.0")
        throw Error(a(527, b0, "19.0.0"));

Which according to react docs here, would have had full error message of:

Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:

This lines up with failing github actions https://github.com/Hacker0x01/react-datepicker/actions/runs/14319179590, and looking at the merge diff (#5534), it indeed introduces the version mismatch.

To Reproduce
Go to https://reactdatepicker.com/ and open the console.

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