Skip to content

bug report #2239

Duplicate of#2191
Duplicate of#2191
@devaniketparmar

Description

@devaniketparmar

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

Activity

timdorr

timdorr commented on May 7, 2025

@timdorr
Member

This was recently fixed by facebook/react#25231. Please ensure your transient dependencies are updated to make sure you get this fix. (e.g. run npm update)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @timdorr@devaniketparmar

        Issue actions

          bug report · Issue #2239 · reduxjs/react-redux