ApathyBear
ApathyBear

Reputation: 9595

Multiple versions of react (react-dom uses old react dependency)

I was getting the famous two versions loaded error. I ran the line npm ls | grep reactand got the following:

├─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
├── [email protected]
│ ├─┬ [email protected]
│ └── [email protected]

It seems that react-dom uses [email protected] while the rest of my project uses [email protected].

What do I do to make react-dom not load this older version of react? I thought that this was the most up-to-date version of react-dom.

Note: I am using npm version 2.15.1 and node version v4.4.4

Upvotes: 7

Views: 3839

Answers (1)

aocenas
aocenas

Reputation: 131

You can try https://docs.npmjs.com/cli/dedupe, if Nicole's comment, with clean reinstall, does not help.

Upvotes: 1

Related Questions