Library is incompatible with React 19 due to use of `SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`
short-dsb opened this issue · 3 comments
short-dsb commented
Our organization is attempting to use the React 19 beta for our internal tools to get ahead of the upgrade for production. However, we encountered a blocking issue with react-relay
.
The loadQuery
method uses __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
which was renamed in React 19 to __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
.
This results in runtime and build issues when attempting to use react-relay
, like this one:
Attempted import error: 'SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' is not exported from 'react' (imported as 'r').