error 'useInsertionEffect'
See original GitHub issueHi, I’ve created a project with the same react and emotion versions, and I get this error:
`ERROR in ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js 95:25-45
export ‘useInsertionEffect’ (imported as ‘useInsertionEffect$1’) 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/@emotion/react/dist/emotion-react.browser.esm.js 95:48-68
export ‘useInsertionEffect’ (imported as ‘useInsertionEffect$1’) 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)`
I only appears when I use react-select.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top GitHub Comments
@jgarmar How did you install it from scratch? I’ve tried that several times and still nothing.
@Methuselah96 I would like to update that we fixed the issue, the problem was terser rollup compressor compressed the
r["useInsertion"+"Effect"]
tor["useInsertionEffect"]
which caused the prolbem.Adding:
terser({ compress: { evaluate: false, })
to terser config fixed this issue.