Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: v6.4.0 Fails to compile/build (React 17 + Webpack) #8931

Closed
haivuw opened this issue Jun 4, 2022 · 0 comments
Closed

[Bug]: v6.4.0 Fails to compile/build (React 17 + Webpack) #8931

haivuw opened this issue Jun 4, 2022 · 0 comments
Labels

Comments

@haivuw
Copy link
Contributor

haivuw commented Jun 4, 2022

What version of React Router are you using?

6.4.0

Steps to Reproduce

https://github.com/remix-run/react-router/tree/remixing/examples/notes but with CRA + React 17

  • git clone https://github.com/haivuw/react-router-6.4.0-reproduction
  • yarn && yarn start

Expected Behavior

React 17 + webpack should compile without errors.

Actual Behavior

Webpack failed to compile/build:

Failed to compile.

Attempted import error: 'startTransition' is not exported from 'react' (imported as 'startTransition').
ERROR in ./node_modules/react-router/index.js 61:10-25
export 'startTransition' (imported as 'startTransition') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)

ERROR in ./node_modules/react-router/index.js 196:0-22
export 'useSyncExternalStore' (imported as 'useSyncExternalStore$3') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)

ERROR in ./node_modules/react-router/index.js 196:39-61
export 'useSyncExternalStore' (imported as 'useSyncExternalStore$3') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)

webpack compiled with 3 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant