You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using require('react') and require('react/addons') in different modules provoke Invariant errors when mixed together. So you have to only use either react or react/addons. Components required from react/lib/* also provoke Invariant errors when used inside components from react.
This a regression, since react-addons was made specifically for this reason, and has since been marked as deprecated.
The text was updated successfully, but these errors were encountered:
Can you construct a complete simplified example? I don't think this should be happening (since react/addons just requires the same thing react does and then adds a couple more properties).
Okay, this is due to the fact that I'm bundling React in a separate libs.js bundle, and I'm currently doing bundle.require('react').require('react/addons'), where react and react/addons are two different copies of React.
Using
require('react')
andrequire('react/addons')
in different modules provoke Invariant errors when mixed together. So you have to only use eitherreact
orreact/addons
. Components required fromreact/lib/*
also provoke Invariant errors when used inside components fromreact
.This a regression, since react-addons was made specifically for this reason, and has since been marked as deprecated.
The text was updated successfully, but these errors were encountered: