You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
import { init } from '@rematch/core';
import createPersistPlugin from '@rematch/persist';
import { routerMiddleware, connectRouter } from 'connected-react-router';
import { createBrowserHistory } from 'history';
import reduxMiddleware from 'react-block-ui/reduxMiddleware'; // only for redux
import * as models from 'models';
export const history = createBrowserHistory();
const persistPlugin = createPersistPlugin({
blacklist: [
'persist',
],
whitelist: [
'user',
...
],
});
export default init({
models,
plugins: [persistPlugin],
redux: {
reducers: {
router: connectRouter(history),
},
middlewares: [
reduxMiddleware,
routerMiddleware(history),
],
},
});
Error
Double checking package installation
The text was updated successfully, but these errors were encountered:
josoroma-zz
changed the title
In combination with rematch I am getting: Module not found: Can't resolve 'react-block-ui/reduxMiddleware' in
In combination with MUI and rematch I am getting: Module not found: Can't resolve 'react-block-ui/reduxMiddleware' in
Feb 29, 2020
try import reduxMiddleware from 'react-block-ui/lib/reduxMiddleware';
then it would error this:
Could not find a declaration file for module 'react-block-ui/lib/redux'. '.../node_modules/react-block-ui/lib/redux.js' implicitly has an 'any' type.
If the 'react-block-ui' package actually exposes this module, try adding a new declaration (.d.ts) file containing declare module 'react-block-ui/lib/redux';
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
store.js
Error
Double checking package installation
The text was updated successfully, but these errors were encountered: