Comment by mcmillhj on 15/10/2024 at 01:33 UTC

1 upvotes, 1 direct replies (showing 1)

View submission: Legacy project not running on one machine

View parent comment

Something has to be different between the two environments. The @types/react version should usually match up with the react version.

Replies

Comment by Floorman1 at 15/10/2024 at 01:35 UTC

1 upvotes, 1 direct replies

I've thrown in a resolutions element into package.json:
    "resolutions": {
        "@types/react-dom": "16.9.12",
        "typescript": "4.2.4",
        "react": "17.0.2",
        "react-dom": "17.0.2",
        "@types/react": "16.14.5"
    },

I thought this should force any rogue versions to come into an alignment?