Cannot find module 'react-dom/lib/ReactPerf'
Hi there!
Just came across this lib today and wanted to give it a try in a project i'm working on but i'm getting an error:
Cannot find module 'react-dom/lib/ReactPerf' from 'react/lib/ReactAddonsDOMDependencies.js
Here's some relevant bits of my package.json:
"brunch": "2.9.1",
"react": "^15.4.1",
"react-addons-css-transition-group": "^15.4.1",
"react-addons-shallow-compare": "^15.4.1",
"react-selectize": "^2.1.0"
The top of my jsx file looks like this:
import React from "react";
import ReactDOM from "react-dom";
import ReactSelectize from "react-selectize";
I'm using brunch and I found a similar issue here: https://github.com/facebook/react/issues/8556
But I rebuilt with:
brunch build --production
but still no worky.
Wondering if you or anyone else has seen this / figured it out.
Thanks!
The actual issue is this one https://github.com/brunch/brunch/issues/1591
We shipped a workaround in React 15.4.2 although it might break again until the underlying issue is fixed.
Thanks @gaearon I'll update and give it a shot this weekend.