Error: [redi]: Cannot find "univer.doc.text-selection-render-manager" registered by any injector. #2863
-
I get an error like this in my React app using Typescript: I found the fix for the issue here: However, the fix :
Can someone give some help on this please ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There could be two possible reasons for this issue. The first one might be the use of React's |
Beta Was this translation helpful? Give feedback.
There could be two possible reasons for this issue.
The first one might be the use of React's
<StrictMode>
, which Univer's DI does not currently support, so you need to remove it.The second reason could be due to an incorrect upgrade of
@wendellhu/redi
during dependency upgrades, which is a peerDependency, resulting in multiple different versions of redi appearing in the project. We have built-in this dependency into@univerjs/core
in the latest 0.2.5 version, so this problem will no longer occur in future upgrades.