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
im working on an unsual setup where i have a nodejs application, configured with typescript and esm, that uses redux-toolkit for some internal state management.
For debugging purposes I wanted to use @redux-devtools/remote together with @redux-devtools/cli .
This is how I setup the store
import { configureStore } from '@reduxjs/toolkit';
import { devToolsEnhancer } from '@redux-devtools/remote';
import featureAReducer from '../feature-a/feature-a.slice.js';
import featureBReducer from '../feature-b/feature-b.slice.js';
import listenerMiddleware from './listener.middleware.js';
export const store = configureStore({
reducer: {
feature-a: featureAReducer,
feature-b: featureBReducer,
},
devTools: false,
middleware: (getDefaultMiddleware) => getDefaultMiddleware().prepend(listenerMiddleware.middleware),
enhancers: (getDefaultEnhancers) => getDefaultEnhancers().concat(devToolsEnhancer({ realtime: true, hostname: 'localhost', port: 8000 })),
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
however when I run the application, I get the following error
Now, since my app is configured to use esm and both @redux-devtools/remote and @redux-devtools/utils export both cjs and esm, why is @redux-devtools/utils/lib/cjs/index.js used instead of @redux-devtools/utils/lib/esm/index.js?
Do I need to configure something explicitly?
The text was updated successfully, but these errors were encountered:
im working on an unsual setup where i have a nodejs application, configured with typescript and esm, that uses redux-toolkit for some internal state management.
For debugging purposes I wanted to use
@redux-devtools/remote
together with@redux-devtools/cli
.This is how I setup the store
however when I run the application, I get the following error
Now, since my app is configured to use esm and both
@redux-devtools/remote
and@redux-devtools/utils
export both cjs and esm, why is@redux-devtools/utils/lib/cjs/index.js
used instead of@redux-devtools/utils/lib/esm/index.js
?Do I need to configure something explicitly?
The text was updated successfully, but these errors were encountered: