Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: ReactCompositeComponent: injectEnvironment() can only be called once. #1817

Closed
creaux opened this issue Sep 28, 2016 · 2 comments

Comments

@creaux
Copy link

creaux commented Sep 28, 2016

This seems to me like bug. I can't recongnize such quickly whether it is in Jest or not.

When I scoping jsx into ReactCSSTransitionGroup components I getting following error in tests.

 FAIL  specs/components/Component.jsx
  ● Test suite failed to run

    Invariant Violation: ReactCompositeComponent: injectEnvironment() can only be called once.

      at invariant (node_modules/fbjs/lib/invariant.js:38:15)
      at Object.injectEnvironment (node_modules/react/lib/ReactComponentEnvironment.js:36: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> (specs/components/helpers/assertComponent.jsx:2:52)
      at Object.<anonymous> (specs/components/Component.jsx:22:50)
      at process._tickCallback (internal/process/next_tick.js:103:7)
@cpojer
Copy link
Member

cpojer commented Sep 28, 2016

See #1353

@cpojer cpojer closed this as completed Sep 28, 2016
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants