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
node_modulesfolder and runnpm installagain. (I suspect that sometimes the transitive dependencies are not updated properly by npm.)