Closed
Description
Note from Maintainers
The bug is in React, and it will be fixed in React 15.4.0.
Until React 15.4.0 is out, update all React packages to 15.4.0-rc.4
if you want to try it out.
We get this error a lot when trying to test our components.
Not sure where this is coming from.
● Runtime Error
- Invariant Violation: ReactCompositeComponent: injectEnvironment() can only be called once.
at invariant (node_modules/fbjs/lib/invariant.js:38:15)
at Object.ReactComponentEnvironment.injection.injectEnvironment (node_modules/react/lib/ReactComponentEnvironment.js:43:60)
at Object.<anonymous> (node_modules/react/lib/ReactTestRenderer.js:130:37)
at Object.<anonymous> (node_modules/react-test-renderer/index.js:4:18)
at Object.<anonymous> (src/shared/components/burger-menu/__tests__/burger-menu.test.js:3:52)
at handle (node_modules/worker-farm/lib/child/index.js:41:8)
at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:47:3)
at emitTwo (events.js:87:13)
at process.emit (events.js:172:7)
at handleMessage (internal/child_process.js:695:10)
at Pipe.channel.onread (internal/child_process.js:440:11)
Metadata
Metadata
Assignees
Labels
No labels