Closed as duplicate of#2191
Description
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
- React:
- ReactDOM/React Native:
- Redux:
- React Redux:
What is the current behavior?
error during build:
node_modules/react-redux/dist/react-redux.mjs (907:9): "useSyncExternalStoreWithSelector" is not exported by "node_modules/use-sync-external-store/with-selector.js", imported by "node_modules/react-redux/dist/react-redux.mjs".
file: D:/ReactCode/images/main/AdminPanel/node_modules/react-redux/dist/react-redux.mjs:907:9
node_modules/react-redux/dist/react-redux.mjs (907:9): "useSyncExternalStoreWithSelector" is not exported by "node_modules/use-sync-external-store/with-selector.js", imported by "node_modules/react-redux/dist/react-redux.mjs".
file: D:/ReactCode/images/main/AdminPanel/node_modules/react-redux/dist/react-redux.mjs:907:9
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
906: const Context = context || ReactReduxContext;
907: return /* @__PURE__ */ React.createElement(Context.Provider, { value: contextValue }, children);
^
908: }
909: var Provider_default = Provider;
at getRollupError (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at error (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/parseAst.js:393:42)
at Module.error (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:16759:16)
at Module.traceVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:17208:29)
at ModuleScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:14864:39)
at FunctionScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at FunctionBodyScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at ReturnValueScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at FunctionBodyScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at Identifier.bind (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5356:40)
What is the expected behavior?
error during build:
node_modules/react-redux/dist/react-redux.mjs (907:9): "useSyncExternalStoreWithSelector" is not exported by "node_modules/use-sync-external-store/with-selector.js", imported by "node_modules/react-redux/dist/react-redux.mjs".
file: D:/ReactCode/images/main/AdminPanel/node_modules/react-redux/dist/react-redux.mjs:907:9
node_modules/react-redux/dist/react-redux.mjs (907:9): "useSyncExternalStoreWithSelector" is not exported by "node_modules/use-sync-external-store/with-selector.js", imported by "node_modules/react-redux/dist/react-redux.mjs".
file: D:/ReactCode/images/main/AdminPanel/node_modules/react-redux/dist/react-redux.mjs:907:9
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
905: }, [contextValue, previousState]);
906: const Context = context || ReactReduxContext;
906: const Context = context || ReactReduxContext;
907: return /* @__PURE__ */ React.createElement(Context.Provider, { value: contextValue }, children);
^
908: }
909: var Provider_default = Provider;
at getRollupError (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at error (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/parseAst.js:393:42)
at Module.error (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:16759:16)
at Module.traceVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:17208:29)
at ModuleScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:14864:39)
at FunctionScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at FunctionBodyScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at ReturnValueScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at FunctionBodyScope.findVariable (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5582:38)
at Identifier.bind (file:///D:/ReactCode/images/main/AdminPanel/node_modules/rollup/dist/es/shared/node-entry.js:5356:40)
Which browser and OS are affected by this issue?
No response
Did this work in previous versions of React Redux?
- Yes
Metadata
Metadata
Assignees
Labels
No labels