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
error 'useInsertionEffect' #5076
Comments
This was a bug in Emotion. Try upgrading to |
Now I've installed from scratch and works, thanks |
@jgarmar How did you install it from scratch? I've tried that several times and still nothing. |
Having the same issue, we don't have emotion installed in our project at all. |
What version of Emotion is in your lock file? Can you delete and regenerate your lock file to manually upgrade it? |
Under react-select its
|
@tomfridental1 What does the |
Thanks :) |
@Methuselah96 I would like to update that we fixed the issue, the problem was terser rollup compressor compressed the Adding: |
Hi, 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.
The text was updated successfully, but these errors were encountered: