Attempted import error: 'ReactReduxContext' is not exported from 'react-redux'

扶醉桌前 提交于 2021-01-29 03:01:12

问题


I am trying to setting up a new react-admin console (following the offcial tutorial : https://marmelab.com/react-admin/Tutorial.html). The current version of react-admin is 3.3.1.

But when execute command yarn start the following error occured :

./node_modules/ra-core/esm/core/CoreAdminContext.js
Attempted import error: 'ReactReduxContext' is not exported from 'react-redux'.

What can I do ?


回答1:


Delete your yarn lock / package lock and yarn install.

As per this thread

The problem comes from duplicate Redux packages, coming from duplicate react-admin dependencies, coming from an outdated data provider (designed for 2.9 while react-admin is in 3.x). Either upgrade your data provider, or downgrade react-admin to 2.9.



来源:https://stackoverflow.com/questions/60741247/attempted-import-error-reactreduxcontext-is-not-exported-from-react-redux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!