react: Error: Cannot find module 'react-dom/lib/ReactPerf' from 'react/lib/ReactAddonsDOMDependencies.js'

ReactAddonsDOMDependencies.js:29Uncaught Error: Cannot find module 'react-dom/lib/ReactPerf' from 'react/lib/ReactAddonsDOMDependencies.js'

I spotted that there was an issue with 15.4.1 regarding something like this, but this file exists. Brunch builds OK, but then fails in the browser with this error.

I don’t know what version I was using prior to this where it worked 😦 I have tried 15.4.0 but still no luck.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 28 (1 by maintainers)

Commits related to this issue

Most upvoted comments

No I know, I just thought as there was an issue already about that file going missing from older builds, it may be tangibly related.

Things I’ve just tried:

  1. Clearing the NPM cache: problem persists.
  2. Running brunch build --production: problem goes away.

Here is a test repo: https://github.com/designermonkey/react-issue

Should be fixed after updating all React packages to 15.4.2. Please verify.

Maybe the comment above will bring some value to the brunch maintainers to fix it on the brunch / deppack side. cc @paulmillr @goshakkk @shvaikalesh @marcioj