FE-Combo / reaux

A lightweight React and Redux application framework designed for isomorphic multi-end data flow, with a strong emphasis on TypeScript strictness.
https://zedfight.gitbook.io/fe-combo/reaux/reaux-she-ji-yuan-li
MIT License
60 stars 5 forks source link

Error: Could not find "store" in the context of "Connect(Component)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(Component) in connect options. #78

Open zedfight opened 11 months ago

zedfight commented 11 months ago

使用reaux-dom v1.4.2 安装完 react-beautiful-dnd v13.1.1 后出现错误

Error: Could not find "store" in the context of "Connect(Component)". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to Connect(Component) in connect options.

Call Stack  ConnectFunction   node_modules/reaux/node_modules/react-redux/es/components/connect.js:266:15  renderWithHooks   node_modules/react-dom/cjs/react-dom.development.js:16305:18  updateFunctionComponent   node_modules/react-dom/cjs/react-dom.development.js:19583:20  updateSimpleMemoComponent   node_modules/react-dom/cjs/react-dom.development.js:19420:10  updateMemoComponent   node_modules/react-dom/cjs/react-dom.development.js:19279:14  beginWork   node_modules/react-dom/cjs/react-dom.development.js:21668:16  HTMLUnknownElement.callCallback   node_modules/react-dom/cjs/react-dom.development.js:4164:14  Object.invokeGuardedCallbackDev   node_modules/react-dom/cjs/react-dom.development.js:4213:16  invokeGuardedCallback   node_modules/react-dom/cjs/react-dom.development.js:4277:31  beginWork$1   node_modules/react-dom/cjs/react-dom.development.js:27446:7

zedfight commented 11 months ago

react-beautiful-dnd 和 reaux-dom 依赖的 react-redux 版本不兼容。

需项目中显式安装 "react-redux": "~8.0.4"