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
- Inline requires to work around Brunch bug See #8556 and https://github.com/brunch/brunch/issues/1591#issuecomment-270742503 for context. This appears to be a Brunch bug but we can keep a temporary fi... — committed to gaearon/react by gaearon 7 years ago
- Inline requires to work around Brunch bug See #8556 and https://github.com/brunch/brunch/issues/1591#issuecomment-270742503 for context. This appears to be a Brunch bug but we can keep a temporary fi... — committed to gaearon/react by gaearon 7 years ago
- Fix AMD and Brunch issues (#8686) * Add manual build fixtures * Inject ReactDOM into ReactWithAddons from ReactWithAddons We used to read ReactDOM as a global inside ReactAddonsDOMDependenciesU... — committed to facebook/react by gaearon 7 years ago
- Fix AMD and Brunch issues (#8686) * Add manual build fixtures * Inject ReactDOM into ReactWithAddons from ReactWithAddons We used to read ReactDOM as a global inside ReactAddonsDOMDependenciesUMDSh... — committed to facebook/react by gaearon 7 years ago
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:
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