问题
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