I am trying to install redux-logger with the following steps:
npm install
after that I added the import registrar to the code:
import logger from 'redux-logger'
and then turned on the registrar in applyMiddleware:
const createStoreWithMiddleware = applyMiddleware(thunk, logger)(createStore) const reducer = combineReducers(reducers) const store = createStoreWithMiddleware(reducer, undefined, autoRehydrate()) persistStore(store, persistConfig)
But I get an error message that it is not installed. Does anyone know why this is happening?

source share